code wiki / _hdl_build / nx_meet_serve_gate.nx

nx_meet_serve_gate.nx

buildroot/runtime/_hdl_build/nx_meet_serve_gate.nx

6355 B110 linesdepth 8pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic meet
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_connect.nx nx_meet_lib.nx nx_meet_serve_lib.nx nx_meet_serve_gate.nx

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

main mputs sys_write mlen sys_mmap sys_socket sys_setsockopt sys_bind sys_exit sys_listen sys_fork meet_serve_one sys_accept sys_set_socket_timeout sys_mmap ↻ sys_setsockopt ↻ sys_munmap sys_mmap ↻ sys_read meet_id mcat sys_mmap ↻ meet_http_handle http_is_post mcat ↻ http_path_is mlen ↻ http_body_off sys_mmap ↻ form_get mlen ↻ url_decode hx curate_screen_posting mlen ↻ trust_is_ghost_posting trust_posting_score mlen ↻ sys_mmap ↻ trust_lc

structs

none

consts

none

functions

10func sg_find(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: sg_has
17func sg_has(buf: *u8, n: i64, needle: *u8) -> i64 { if sg_find(buf, n, needle) >= 0 { return 1 } return 0 }
called by 1: main calls 1: sg_find
18func 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 }
called by 2: build_postmain
19func 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 }
called by 1: build_post calls 1: sys_mmap
20func 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 }
called by 1: cg_send calls 1: sys_mmap
22func build_post(path: *u8, body: *u8, out: *u8) -> i64
called by 1: main calls 2: sg_catsg_itoa
33func cg_send(port: i64, raw: *u8, rawlen: i64, resp: *u8, cap: i64) -> i64
58func main() -> i64