code wiki / _hdl_build / nx_site_dispatch_gate.nx

nx_site_dispatch_gate.nx

buildroot/runtime/_hdl_build/nx_site_dispatch_gate.nx

5708 B64 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic site
docsdependenciesstructsconstsfunctions

about

nx_site_dispatch_gate.nx -- PURE gate for the reconciled daemon's data-driven brain. Proves the WHOLE decision the hardcoded cascade made is now a composition of three DATA tables: /gallery is PROXIED (data row), a hub domain is SERVED STATIC from its vhost docroot, an unknown host is 404, the SNI cert is selected per-request (wildcard + ANTI-SPOOF), all with NO hardcoded routes/certs/hosts. GREEN iff T1..T8. Sovereign: nx_site_dispatch + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_site_dispatch.nx nx_syscalls.nx nx_site_dispatch_gate.nx

imports: nx_site_dispatch.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_w sys_write g_row g_w ↻ g_disp sys_mmap g_len sd_dispatch cr_match sys_mmap ↻ cr_eol cr_split cr_is_sep cr_host_eq_ci cr_lc cr_wild_match cr_lc ↻ cr_tok_eq_ci cr_slen cr_lc ↻ cr_copyz rt_match sys_mmap ↻ rt_eol rt_split rt_tok_eq rt_slen rt_slice_eq rt_prefix_boundary rt_slice_atoi rt_mode_code rt_tok_eq ↻ sd_vhost cr_eol ↻ cr_split ↻ cr_host_eq_ci ↻ cr_copyz ↻ g_streq sys_openat_append

structs

none

consts

18const G_RT: *u8 = "nishifamily.com /gallery 18190 stream\nnishifamily.com /torrent 18793 stream\n" as *u8
19const G_CT: *u8 = "nishifamily.com certs/nf.der certs/nf.key\n*.nishifamily.com certs/nfw.der certs/nfw.key\nbradrwest.com certs/brad.der certs/brad.key\njensendwest.com certs/jen.der certs/jen.key\n* certs/def.der certs/def.key\n" as *u8
20const G_VT: *u8 = "bradrwest.com web_assets/sites/bradrwest/index.html\njensendwest.com web_assets/sites/jensendwest/index.html\n" as *u8

functions

9func g_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 2: g_rowmain calls 1: sys_write
10func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: g_disp
11func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
16func g_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: g_disp
22func g_disp(sni: *u8, host: *u8, path: *u8, want_o: i64, want_port: i64, want_mode: i64, want_chain: *u8, want_dr: *u8) -> i64
34func main() -> i64