code wiki / _hdl_build / nx_transport_gate.nx
nx_transport_gate.nx
buildroot/runtime/_hdl_build/nx_transport_gate.nx
about
nx_transport_gate.nx -- proves the SOVEREIGN transport CONTRACT (nx_transport). A frame handed to a
transport must come out the other side byte-identical + in FIFO order, and the open/send/recv/close
lifecycle + honest drops (oversized/full/closed -> -1, empty -> 0) must hold. Any transport adapter
(browser WebSocket, NishiOS datagram) MUST satisfy this -> it is the seam where WebSocket is just a
swappable pipe. Reference impl = the loopback ring. NEG-controls give the checker teeth. 0=GREEN/1=RED.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_transport.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
| 9 | func g_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 10 | func g_n(v: i64) -> i64 |
| 14 | func chk(cond: i64, name: *u8, pp: *i64, tp: *i64) -> i64 |
| 18 | func bytes_eq(a: *u8, al: i64, b: *u8, bl: i64) -> i64 called by 1: main |
| 23 | func main() -> i64 |