aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gateway.py
diff options
context:
space:
mode:
authoruser <user@clank>2026-07-17 14:26:06 +0200
committeruser <user@clank>2026-07-17 14:26:06 +0200
commit584b19508b31f444ae02a974b96d1a50b8e650a2 (patch)
treeff8698446e6337b235482b5dcb9f19ae2fb5091d /tools/gateway.py
parenttools: gbhub - many Game Boys on one network (DHCP pool + inter-GB routing) (diff)
downloadgbos-584b19508b31f444ae02a974b96d1a50b8e650a2.tar.gz
gbos-584b19508b31f444ae02a974b96d1a50b8e650a2.tar.xz
gbos-584b19508b31f444ae02a974b96d1a50b8e650a2.zip
tools: gbhub --daemon + gbjoin - interactive multi-Game-Boy networking
gbhub gains a --daemon mode: instead of spawning headless emulators, it just runs the switch/router/DHCP and accepts link connections, handing each a lease from a pool (10.0.0.2..) and freeing it on disconnect. The link socket is made world-connectable so unprivileged emulators can join. gbjoin (no root) launches a *windowed* Game Boy and plugs its link into the running hub, with its own ROM copy so battery saves don't clash. So you get real interactive Game Boys on one network: term 1: sudo tools/gbhub --daemon term 2: tools/gbjoin # windowed GB -> 10.0.0.2 term 3: tools/gbjoin # windowed GB -> 10.0.0.3 (on each: SELECT for the OSK, then e.g. ping 10.0.0.3) Verified two GBs join the daemon and get distinct leases; routing is the same code path as the (already-verified) spawn-mode GB<->GB ping.
Diffstat (limited to 'tools/gateway.py')
0 files changed, 0 insertions, 0 deletions