code wiki / _hdl_build / nx_site_intake_serve.nx

nx_site_intake_serve.nx

buildroot/runtime/_hdl_build/nx_site_intake_serve.nx

5677 B129 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind servicetopic site
docsdependenciesstructsconstsfunctions

about

nx_site_intake_serve.nx -- the DEPLOYABLE ops shell around the gated pure core nx_site_intake (thin-daemon discipline, nx_survey_daemon precedent: ALL decision logic lives in the 8/8-gated core, this file only binds/reads/writes). LOOPBACK-ONLY 127.0.0.1:8033 -- public traffic must arrive via the sovereign edge proxy row (/intake/ -> 127.0.0.1:8033, debt 1785936366), never directly; binding loopback (tighter than the survey daemon's 0.0.0.0) means a firewall slip cannot expose the raw port. Store plane knowledge/store/siteintake- + evidence log knowledge/status/site_intake.log; store dirs self-healed on startup (the relate-daemon lesson). SO_REUSEADDR so the reconcile cron can rebind instantly after a crash (the office TIME_WAIT lesson). The read helper mirrors sv2_read_req -- 2nd use in the estate; extract to a shared nx_http_read lib on the 3rd (rule 15). Build with --build-only; started deliberately by the mount hook, never as a build side-effect. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 0 importers

nx_site_intake.nx nx_site_intake_serve.nx

imports: nx_site_intake.nx

imported by: nobody (leaf or entry point)

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

main sys_mkdir sis_addr sys_socket sis_p sys_setsockopt sys_bind sys_listen

structs

none

consts

14const SIS_PORT: i64 = 0x1f61
15const SIS_REQ: i64 = 8192
16const SIS_RESP: i64 = 4096
17const SIS_BACKLOG: i64 = 16
18const SIS_ADDRSZ: i64 = 16
19const SIS_CL_KEYLEN: i64 = 15
20const SIS_B127: i64 = 127
21const SIS_DMODE: i64 = 493

functions

23func sis_p(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: main
25func sis_addr(out: *u8, port: i64) -> i64
called by 1: main
40func sis_read_req(fd: i64, buf: *u8, cap: i64) -> i64
calls 1: sys_read
88func sis_write_all(fd: i64, buf: *u8, n: i64) -> i64
98func main() -> i64