RE env for inspecting APKs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
829 B

  1. #!/bin/env python3
  2. def check_bridge_socket()::
  3. evt = None
  4. return evt
  5. def handle_bridge_evt(evt):
  6. """
  7. TODO: Whatever bridge events to handle
  8. """
  9. def check_debug_socket():
  10. dbg_evt = None
  11. return dbg_evt
  12. def handle_debug_evt(dbg_evt):
  13. """ TODO: Do something with the events here."""
  14. def run_loop():
  15. """ """
  16. while True:
  17. # 1. Check the BridgeSocket
  18. evt = check_bridge_socket()
  19. if evt != None:
  20. handle_bridge_evt(evt)
  21. dbg_evt = check_debug_socket()
  22. if dbg_evt != None:
  23. handle_debug_evt(dbg_evt)
  24. def main():
  25. """
  26. 1. TODO: Open Server port that the device connects to.
  27. 2. TODO: Open Server port that an admin connects to, i.e., to test sending packets to
  28. 3. TODO:
  29. """
  30. if __name__ == '__main__':
  31. main()