Client Script!
Basic functionality (TL;DR)
Client should connect to server, notify of its connected networks then wait for tasks.
Technical details
Connections:
-
client sends 'known' networks and other needed to server -
client traps any errors and sends them back to the server -
client sends occasional keep-alive packets to the server, if a timeout occurs it should try to re-connect.
"Known networks" / Config Setup
Networks:
-
JSON file with static connected-network definitions -
Dynamically find connected IP networks through shell parsing or other means
General Config:
-
Server address in Config file (be it JSON along with the known networks or separate ini file)