code wiki / _hdl_build / nx_meet_serve_gate.nx
nx_meet_serve_gate.nx
buildroot/runtime/_hdl_build/nx_meet_serve_gate.nx
about
nx_meet_serve_gate.nx -- liar-kill gate for the P2-LIVE socket route. Binds a port, forks a child running the
REAL daemon path (meet_serve_one -> accept -> meet_http_handle), and drives it as a sovereign loopback HTTP
CLIENT. Asserts over a real socket: a clean apply POST -> 200 + "passed our checks" (SCREENED), a honeypot POST
-> 200 + "under review" (FLAGGED), a GET -> 405. Distinguishing teeth: screened != flagged response. expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_connect.nxnx_meet_lib.nxnx_meet_serve_lib.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
| none |
functions
| 10 | func sg_find(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: sg_has |
| 17 | func sg_has(buf: *u8, n: i64, needle: *u8) -> i64 { if sg_find(buf, n, needle) >= 0 { return 1 } return 0 } |
| 18 | func sg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i];o=o+1;i=i+1} return o } |
| 19 | func sg_itoa(dst: *u8, off: i64, v: i64) -> i64 { let t: *u8=sys_mmap(28); var m: i64=v; var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var o: i64=off; var q: i64=k-1; while q>=0{dst[o]=t[q];o=o+1;q=q-1} return o } |
| 20 | func sg_nap(ms: i64) -> i64 { let ts: *i64 = sys_mmap(16) as *i64; ts[0]=0; ts[1]=ms*1000000; __syscall(35, ts as i64, 0, 0, 0, 0, 0); return 0 } |
| 22 | func build_post(path: *u8, body: *u8, out: *u8) -> i64 |
| 33 | func cg_send(port: i64, raw: *u8, rawlen: i64, resp: *u8, cap: i64) -> i64 |
| 58 | func main() -> i64 |