code wiki / _hdl_build / nx_connect_app_gate.nx

nx_connect_app_gate.nx

buildroot/runtime/_hdl_build/nx_connect_app_gate.nx

27721 B456 linesdepth 4pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_app_gate.nx -- offline gate for the CONNECT interactive app (nx_connect_serve pure core). Drives cs_handle DIRECTLY with synthetic HTTP requests (no sockets, deterministic) and asserts on the rendered bytes. Rewritten 2026-07-23 for the MULTI-PAGE app, and extended to gate the newly-surfaced LDS reconnection page -- the first time that capability is reachable by a real user. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_connect_serve.nx nx_connect_app_gate.nx

imports: nx_connect_serve.nx

imported by: nobody (leaf or entry point)

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

main cs_world_new sys_mmap cs_world_reset cs_cat ga_w ga_get cs_cat ↻ cs_handle cs_handle2 cs_starts sys_mmap ↻ cs_slen cs_seq cs_cat ↻ cs_catn cu_putn cs_json_resp cs_cat ↻ cs_catn ↻ cs_form_get cs_slen ↻ cs_hexval cs_sh_pub_put2 cs_name_ok cs_hex_len cs_sh_pub_find cs_seq ↻ sh_pub_at sh_own_at cs_eq32 sh_pub_at ↻ cs_sh_copyz cs_copy32 cs_catsn cs_cat ↻ cs_catn ↻ sh_pub_at ↻ sh_own_at ↻ cs_name_ok ↻

structs

none

consts

8const AG_BUF: i64 = 1048576

functions

10func ga_w(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 3: ga_nga_checkmain
11func ga_n(v: i64) -> i64 { let t: *u8=sys_mmap(32); let o: i64=cu_putn(t,0,v); t[o]=0 as u8; ga_w(t); return 0 }
called by 1: main calls 1: ga_w
12func ga_check(pass: i64, label: *u8, fails: *i64) -> i64
called by 1: main calls 1: ga_w
18func ga_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 2: ga_hasmain calls 1: cs_slen
31func ga_has(buf: *u8, n: i64, needle: *u8) -> i64 { if ga_count(buf,n,needle)>0 { return 1 } return 0 }
called by 1: main calls 1: ga_count
33func ga_get(dst: *u8, path: *u8) -> i64
called by 1: main calls 1: cs_cat
39func ga_post(dst: *u8, path: *u8, body: *u8) -> i64
called by 1: main calls 3: cs_slencs_catcs_catn
50func main() -> i64