nx_ipp_transport_test.nx
buildroot/runtime/nx_ipp_transport_test.nx
about
nx_ipp_transport_test.nx -- offline gate for IPP-over-HTTP transport (R2).
Proves the HTTP-framing/dechunk logic deterministically (no network), with unique exit codes:
1x Content-Length response -> body extracted byte-exact, status 200, diagnoses BLOCKED (stopped)
2x chunked response -> de-chunked body byte-exact, status 200
3x status-line parse (503) + bad-http (no header terminator) -> sealed BAD_HTTP
4x build_request round-trips: printer-uri == ipp://1.2.3.4/ipp/print, op = Get-Printer-Attributes
The LIVE proof against the real Brother DCP-L2540DW is recorded separately (that run IS the 3rd-party
oracle for this non-novel protocol). This gate locks the framing so regressions are caught without it.
expect_exit: 0
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_ipp_codec.nxnx_printer_health.nxnx_ipp_transport.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
| none |
functions
| 20 | func t_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } calls 1: sys_write |
| 23 | func put_hex(buf: *u8, off: i64, v: i64) -> i64 |
| 36 | func bytes_eq(x: *u8, y: *u8, n: i64) -> i64 called by 1: main |
| 42 | func main() -> i64 |