code wiki / _hdl_build / nx_mp_daemon_gate.nx

nx_mp_daemon_gate.nx

buildroot/runtime/_hdl_build/nx_mp_daemon_gate.nx

4842 B97 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic mp
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_gate_emit_lib.nx nx_mp_daemon.nx nx_mp_daemon_gate.nx

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

main g_puts sys_write sys_mmap rr_init mpd_path mpd_route mpd_starts mpd_qint mpd_slen g_check g_puts ↻ mk_post mpd_wstr mpd_wn sys_mmap ↻ mpd_pstate mpd_qint ↻ mpd_body_off rr_post rr_find rr_alloc mpd_wstr ↻ rr_live rr_find ↻ mpd_wstr ↻ mpd_wn ↻ mpd_roster mpd_qint ↻ sys_mmap ↻ mp_roster_body rr_nslots rr_room rr_peer rr_seen rr_flen mpd_wstr ↻ mpd_wn ↻ mpd_body_off ↻ mp_roster_count

structs

none

consts

none

functions

12func mk_post(req: *u8, rm: i64, pr: i64, frame: *u8, fl: i64) -> i64
called by 1: main calls 2: mpd_wstrmpd_wn
24func rec_eq(body: *u8, o: i64, expect: *u8, n: i64) -> i64
called by 1: main
31func main() -> i64