code wiki / _hdl_build / nx_connect_app_gate.nx
nx_connect_app_gate.nx
buildroot/runtime/_hdl_build/nx_connect_app_gate.nx
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
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
structs
| none |
consts
| 8 | const AG_BUF: i64 = 1048576 |
functions
| 10 | func 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 } |
| 11 | func 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 } |
| 12 | func ga_check(pass: i64, label: *u8, fails: *i64) -> i64 |
| 18 | func ga_count(buf: *u8, n: i64, needle: *u8) -> i64 |
| 31 | func ga_has(buf: *u8, n: i64, needle: *u8) -> i64 { if ga_count(buf,n,needle)>0 { return 1 } return 0 } |
| 33 | func ga_get(dst: *u8, path: *u8) -> i64 |
| 39 | func ga_post(dst: *u8, path: *u8, body: *u8) -> i64 |
| 50 | func main() -> i64 |