code wiki / (root) / nx_browse_text_test.nx

nx_browse_text_test.nx

buildroot/runtime/nx_browse_text_test.nx

4355 B126 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_browse_text.nx nx_browse_text_test.nx

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

main sys_mmap bt_addr sys_socket sys_bind sys_listen sys_fork bt_run_client sys_mmap ↻ nx_browse_text br_fetch_raw sys_socket ↻ nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_mmap ↻ br_build_get sys_write br_drain sys_read br_render_response nx_http_resp_alloc sys_mmap ↻ nx_http_response_parse sys_mmap ↻ nx_http_resp_parse_status_ sys_mmap ↻ nx_http_resp_parse_dec nx_http_resp_skip_ows nx_http_resp_find_crlf nx_http_resp_classify_body sys_mmap ↻ nx_http_resp_parse_header_ nx_http_resp_cieq nx_http_resp_parse_dec ↻ nx_html_to_text nx_html_to_text_x

structs

none

consts

15const BT_PORT: i64 = 17893

functions

19func bt_addr(out: *u8, port: i64) -> i64
called by 1: main
28func bt_write(out: *u8, off: i64, s: *u8, n: i64) -> i64
called by 1: bt_make_response
34func bt_make_response(out: *u8) -> i64
called by 1: bt_run_server calls 2: sys_mmapbt_write
74func bt_run_server(cfd: i64) -> i64
82func bt_run_client(cfd_unused: i64, addr: *u8) -> i64
102func main() -> i64