code wiki / (root) / nx_torrent_stream_live_gate.nx

nx_torrent_stream_live_gate.nx

buildroot/runtime/nx_torrent_stream_live_gate.nx

4260 B67 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic torrent
docsdependenciesstructsconstsfunctions

about

nx_torrent_stream_live_gate.nx -- LIVE verification of the deployed /torrent/stream endpoint. Sends real HTTP Range requests to the running daemon (:8097) and checks the 206 responses against the operator's real 300MIUM download. NO bash/curl -- sovereign nx_http_client over a raw socket. Run (daemon must be UP): ./_offc/nx_sov_build_run.elf nx_torrent_stream_live_gate depends: nishi-core.http_client

dependencies 2 imports · 0 importers

nx_http_client.nx nx_connect.nx nx_torrent_stream_live_gate.nx

imports: nx_http_client.nxnx_connect.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_get_range sys_socket sys_set_socket_timeout sys_mmap sys_setsockopt sys_munmap nx_http_client_sockaddr_ip nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll g_cat g_strlen _drain sys_read g_puthead g_puts g_contains g_strlen ↻ g_report g_puts ↻ g_puts ↻

structs

none

consts

none

functions

9func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
10func g_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: g_catg_contains
11func g_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[off+i]=s[i];i=i+1} return off+g_strlen(s) }
called by 1: g_get_range calls 1: g_strlen
12func g_contains(buf: *u8, n: i64, s: *u8) -> i64
called by 1: main calls 1: g_strlen
18func g_report(label: *u8, ok: i64) -> i64 { if ok==1 { g_puts(" [PASS] " as *u8) } else { g_puts(" [FAIL] " as *u8) } g_puts(label); g_puts("\n" as *u8); return 0 }
called by 1: main calls 1: g_puts
20func g_puthead(buf: *u8, n: i64) -> i64 { var m: i64=n; if m>200 {m=200} g_puts(" > " as *u8); sys_write(1, buf, m); g_puts("\n" as *u8); return 0 }
called by 1: main calls 1: g_puts
23func g_get_range(path: *u8, rng: *u8, buf: *u8, cap: i64) -> i64
37func main() -> i64