code wiki / _hdl_build / nx_survey_daemon.nx

nx_survey_daemon.nx

buildroot/runtime/_hdl_build/nx_survey_daemon.nx

2866 B60 linesdepth 13pulls 15 transitivereach 0 importersview sourcekind servicetopic survey
docsdependenciesstructsconstsfunctions

about

nx_survey_daemon.nx -- the DEPLOYABLE Nishi Pulse survey/poll daemon (ops shell around the gated pure core nx_survey_serve). Binds 0.0.0.0:8031; CWD = nishihost on the NAS. Mounted at nishifamily.com/survey via a proxy_routes.conf row (the /office precedent). Store = seg_store prefix knowledge/survey/pulse_ (self-healed on startup: the relate-daemon lesson -- root-owned knowledge/ may lack the subdir). Admin lane reads survey_admin.key from CWD per request (FAIL-CLOSED when absent). SO_REUSEADDR so the reconcile cron can rebind instantly after a crash (the office TIME_WAIT lesson). Build with --build-only; run deliberately. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_survey_serve.nx nx_survey_daemon.nx

imports: nx_survey_serve.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 sd_addr sys_socket sv2_p sys_setsockopt sys_bind sys_listen

structs

none

consts

10const SD_PORT: i64 = 0x1f5f // 8031

functions

12func sd_addr(out: *u8, port: i64) -> i64
called by 1: main
22func main() -> i64