code wiki / (root) / nx_page_get_test.nx

nx_page_get_test.nx

buildroot/runtime/nx_page_get_test.nx

5417 B174 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic page
docsdependenciesstructsconstsfunctions

about

nx_browser_loopback_test.nx -- fork-loopback fetch + render. Server: accepts ONE TCP connection on a high port, sends a canned HTTP/1.1 response with a small HTML body, then exits. Client: connects, reads the full response, parses it, renders to plain text, writes to stdout. This proves the sovereign browser substrate composes over a real kernel-mediated TCP socket -- only the TLS layer is omitted (the already-passing nx_https_loopback_test proves that layer in isolation). CAPABILITY_COMPLETENESS PARTIAL: combining loopback + TLS into one binary is queued behind X.509 chain validation arc. expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_connect.nx nx_http_response_parse.nx nx_html_to_text.nx nx_page_get_test.nx

imports: nx_syscalls.nxnx_connect.nxnx_http_response_parse.nxnx_html_to_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 blp_addr sys_socket sys_bind sys_listen sys_fork nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll blp_run_client sys_mmap ↻ blp_recv_all sys_read blp_render 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_is_digit 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_find_byte nx_http_resp_skip_ows ↻ nx_http_resp_find_crlf ↻ nx_http_resp_cieq nx_http_resp_lower nx_http_resp_parse_dec ↻ nx_html_to_text nx_html_to_text_x h2t_state_new sys_mmap ↻

structs

none

consts

23const BLP_PORT: i64 = 17890

functions

27func blp_addr(out: *u8, port: i64) -> i64
called by 1: main
37func blp_recv_all(fd: i64, buf: *u8, cap: i64) -> i64
called by 1: blp_run_client calls 1: sys_read
49func blp_write(out: *u8, off: i64, s: *u8, n: i64) -> i64
55func blp_status(out: *u8) -> i64
called by 1: blp_build calls 2: sys_mmapblp_write
65func blp_ct(out: *u8, off: i64) -> i64
called by 1: blp_build calls 2: sys_mmapblp_write
77func blp_cl(out: *u8, off: i64) -> i64
called by 1: blp_build calls 2: sys_mmapblp_write
90func blp_body(out: *u8, off: i64) -> i64
called by 1: blp_build calls 2: sys_mmapblp_write
102func blp_build(out: *u8) -> i64
113func blp_render(buf: *u8, n: i64, out: *u8, cap: i64) -> i64
125func blp_run_server(cfd: i64) -> i64
133func blp_run_client(cfd: i64) -> i64
147func main() -> i64