code wiki / _hdl_build / nx_mp_daemon_gate.nx
nx_mp_daemon_gate.nx
buildroot/runtime/_hdl_build/nx_mp_daemon_gate.nx
about
nx_mp_daemon_gate.nx -- proves the sovereign multiplayer daemon request-handler (nx_mp_daemon) over a relay.
NO sockets, NO js, NO curl: crafts real HTTP request bytes and drives mpd_pstate / mpd_roster directly.
1) routing: /pstate->1, /roster->2, a file path->0 ; query ints parsed
2) POST /pstate puts the body snapshot into the room (two players)
3) GET /roster returns an HTTP response whose body = the OTHER players' [len][frame] records (byte-exact)
4) room isolation (neg): /roster for a different room returns an empty body
Built nx_cc_sovereign -> nxasm_x86 (no gcc, no .sh). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_mp_daemon.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 12 | func mk_post(req: *u8, rm: i64, pr: i64, frame: *u8, fl: i64) -> i64 |
| 24 | func rec_eq(body: *u8, o: i64, expect: *u8, n: i64) -> i64 called by 1: main |
| 31 | func main() -> i64 |