code wiki / _hdl_build / nx_mineworld_mp_up.nx

nx_mineworld_mp_up.nx

buildroot/runtime/_hdl_build/nx_mineworld_mp_up.nx

4996 B102 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind tooltopic mineworld
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_connect.nx nx_daemon.nx nx_mineworld_mp_up.nx

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

main up_w sys_write up_spawn_wait sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 sys_mmap ↻ daemon_argv0 daemon_spawn sys_fork ↻ nx_setsid sys_openat_rd sys_openat_wr ↻ sys_dup3 ↻ sys_execve ↻ sys_exit ↻ sys_now_ms sys_mmap ↻ sys_clock_gettime_mono up_probe sys_mmap ↻ sys_socket nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_write ↻ sys_read up_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num

structs

none

consts

11const K_MAGIC_7702: i64 = 7702
12const K_MAGIC_65536: i64 = 65536
13const K_MAGIC_8000: i64 = 8000
14const K_MAGIC_20000: i64 = 20000

functions

16func 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 }
called by 1: main calls 1: sys_write
21func up_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func up_spawn_wait(path: *u8, a0: *u8, a1: *u8) -> i64
44func up_probe(resp: *u8, cap: i64) -> i64
68func main() -> i64