code wiki / (root) / nx_moonraker_io_ipv4_test.nx

nx_moonraker_io_ipv4_test.nx

buildroot/runtime/nx_moonraker_io_ipv4_test.nx

2896 B84 linesdepth 7pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic moonraker
docsdependenciesstructsconstsfunctions

about

nx_moonraker_io_ipv4_test.nx -- exercise the operator-facing arbitrary-IPv4 API (nx_mr_post_ipv4) via loopback (127, 0, 0, 1). Same fork pattern as the v2 loopback smoke but uses the v3 generic API. Proves the operator-facing flow works -- they substitute their printer's LAN IP (e.g., 192, 168, 1, 42) and the same code talks to the real X-Max 3. expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_tls13_io.nx nx_moonraker_client.nx nx_moonraker_io.nx nx_moonraker_io_ipv4_test.nx

imports: nx_syscalls.nxnx_tls13_io.nxnx_moonraker_client.nxnx_moonraker_io.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main tcp_listen_loopback sys_socket sys_setsockopt sys_bind sys_listen sys_fork sys_mmap nx_mr_pack_ipv4 nx_mr_get_ipv4 nx_mr_build_get_request nx_mr_write_cstr nx_mr_write_bytes nx_mr_tcp_connect_ipv4 sys_socket ↻ sys_mmap ↻ nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_write sys_close sys_read sys_exit nx_mr_parse_status sys_accept sys_read ↻ smoke_contains sys_write ↻ sys_close ↻

structs

none

consts

16const TEST_PORT: i64 = 18448

functions

18func smoke_contains(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: main
36func main() -> i64