nx_browse_text_test.nx
buildroot/runtime/nx_browse_text_test.nx
about
nx_browse_text_test.nx -- fork-loopback proof that nx_browse_text
composes correctly end-to-end.
Server: accepts ONE TCP connection on a high port, replies with a
canned HTTP/1.1 response carrying small HTML, closes.
Client: invokes nx_browse_text(127.0.0.1:PORT, "/", "localhost",
out) and asserts the rendered text equals "Welcome\n" (8 bytes).
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_browse_text.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
| 15 | const BT_PORT: i64 = 17893 |
functions
| 19 | func bt_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 28 | func bt_write(out: *u8, off: i64, s: *u8, n: i64) -> i64 called by 1: bt_make_response |
| 34 | func bt_make_response(out: *u8) -> i64 |
| 74 | func bt_run_server(cfd: i64) -> i64 |
| 82 | func bt_run_client(cfd_unused: i64, addr: *u8) -> i64 |
| 102 | func main() -> i64 |