code wiki / _hdl_build / nx_site_intake_serve.nx
nx_site_intake_serve.nx
buildroot/runtime/_hdl_build/nx_site_intake_serve.nx
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
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
structs
| none |
consts
| 14 | const SIS_PORT: i64 = 0x1f61 |
| 15 | const SIS_REQ: i64 = 8192 |
| 16 | const SIS_RESP: i64 = 4096 |
| 17 | const SIS_BACKLOG: i64 = 16 |
| 18 | const SIS_ADDRSZ: i64 = 16 |
| 19 | const SIS_CL_KEYLEN: i64 = 15 |
| 20 | const SIS_B127: i64 = 127 |
| 21 | const SIS_DMODE: i64 = 493 |
functions
| 23 | func 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 |
| 25 | func sis_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 40 | func sis_read_req(fd: i64, buf: *u8, cap: i64) -> i64 calls 1: sys_read |
| 88 | func sis_write_all(fd: i64, buf: *u8, n: i64) -> i64 |
| 98 | func main() -> i64 |