code wiki / _hdl_build / nx_mineworld_mp_up.nx
nx_mineworld_mp_up.nx
buildroot/runtime/_hdl_build/nx_mineworld_mp_up.nx
about
nx_mineworld_mp_up.nx -- bring the MULTIPLAYER MineWorld relay LIVE locally: build nx_mp_serve (--build-only,
the runner leaves /tmp/nx_mp_serve.sov.elf in THIS shell session), daemon_spawn it detached (nx_daemon =
fork+setsid+execve, gate-proven; survives the launcher), then LOOPBACK-PROBE 127.0.0.1:7702 GET /mineworld
until 200 + a full self-contained page (>20000B) or an 8s deadline. Play = open http://localhost:7702/mineworld
in two tabs (same room #hash) -- peers see each other. A 404 here = an OLD daemon holds :7702 (restart it).
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_connect.nxnx_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
| 11 | const K_MAGIC_7702: i64 = 7702 |
| 12 | const K_MAGIC_65536: i64 = 65536 |
| 13 | const K_MAGIC_8000: i64 = 8000 |
| 14 | const K_MAGIC_20000: i64 = 20000 |
functions
| 16 | func up_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 21 | func up_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func up_spawn_wait(path: *u8, a0: *u8, a1: *u8) -> i64 |
| 44 | func up_probe(resp: *u8, cap: i64) -> i64 |
| 68 | func main() -> i64 |