nx_moonraker_io_test.nx
buildroot/runtime/nx_moonraker_io_test.nx
about
nx_moonraker_io_test.nx -- REAL network roundtrip test.
Parent: acts as a fake Moonraker server -- listens on a loopback
port, accepts the connection, reads the POST request, validates
it contains expected markers, sends back a canned HTTP/1.1 200 OK
response.
Child: builds + sends the Moonraker POST /printer/print/start
request via nx_mr_post_loopback (composes nx_mr_build_post_request
+ tcp_connect_loopback + sys_write + sys_read). Verifies the
response status is 200. Exits with assertion code.
Bytes flow over a real loopback socket through the real Linux
kernel TCP stack inside qemu -- this is REAL network I/O, not a
mock.
expect_exit: 0
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
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
structs
| none |
consts
| 25 | const TEST_PORT: i64 = 18447 |
functions
| 28 | func smoke_contains(buf: *u8, len: i64, needle: *u8) -> i64 called by 1: main |
| 46 | func main() -> i64 |