code wiki / (root) / nx_backend_probe.nx

nx_backend_probe.nx

buildroot/runtime/nx_backend_probe.nx

1923 B36 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_backend_probe.nx -- probe the plain-HTTP library backend (:8095) on both the deploy target (.227) and the public-DNS edge (.240) to settle the topology: which box actually serves the 16K-taxon library after this deploy.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_http_proxy.nx nx_backend_probe.nx

imports: nx_syscalls.nxnx_http_proxy.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main probe sys_mmap bp_puts sys_write nx_http_proxy_forward sys_mmap ↻ nxp_parse_ip sys_socket nxp_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_write ↻ sys_read bp_putn sys_mmap ↻ sys_write ↻ bp_wr sys_write ↻

structs

none

consts

6const K_MAGIC_262144: i64 = 262144
7const K_MAGIC_8095: i64 = 8095

functions

9func bp_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: probe calls 1: sys_write
10func bp_wr(p: *u8, n: i64) -> i64 { sys_write(1, p, n); return 0 }
called by 1: probe calls 1: sys_write
11func bp_putn(v: i64) -> i64
called by 1: probe calls 2: sys_mmapsys_write
20func probe(ip: *u8, iplen: i64, req: *u8, label: *u8) -> i64
31func main() -> i64
calls 1: probe