How ach-raf/open_link_server works
Project type and purpose
• This is a networked “backend” CLI application written in Python that serves as a remote‐control server for an Android client (OpenLink Client).
• It uses UDP broadcasting for discovery and TCP for command delivery, then executes OS‐level actions (keyboard events, screen control, link opening).
File structure
• Top‐level files:
• server_cli.py – entry point, starts UDP/TCP services and dispatches commands.
• lib/ – command‐action modules:
– udp_broadcaster.py – discovery responder
– keyboard_mouse.py & mouse_keyboard.py – input injection
– turn_off_screen.py – screen power control
• requirements.txt, Readme.md, LICENSE, .gitignore – metadata/config.
README for additional insights
• Technical stack: Python 3.x, standard library sockets, pyKey (keyboard handling).
• Behavior:
• UDP broadcast listening/responses for client autodiscovery.
• TCP server loop for receiving commands/links.
• Parsing commands and invoking corresponding lib modules.
• Opens URLs in default browser.
Detailed breakdown
– Action Modules cluster (keyboard_mouse, turn_off_screen, etc.)