code wiki / _hdl_build / nx_video_2party_probe.nx
nx_video_2party_probe.nx
buildroot/runtime/_hdl_build/nx_video_2party_probe.nx
about
nx_video_2party_probe.nx -- LIVE end-to-end media fan-out proof (operator: "I want our video system to
WORK"). Opens TWO concurrent TLS-1.3 + WebSocket sessions to the REAL nishifamily.com/signal/<room>,
has peer A send a masked WS BINARY frame with a known marker, and verifies peer B RECEIVES that marker
via the relay's content-blind broadcast -- proving media actually flows peer -> relay -> peer over the
real edge (TLS -> sites.elf /signal pump -> nx_signaling_v2 -> broadcast). Beyond serve+upgrade: this is
the "two people actually see each other" proof.
The TLS-record + RFC-6455 client-session glue now lives in the SHARED nx_ws_client_session.nx (wscs_*),
so this probe and the mobile-native client (nx_video_native_client_gate) use ONE implementation (DRY).
usage: nx_video_2party_probe [room] (default room "nx2ptest")
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_ws_client_session.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
| 13 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 15 | func p2w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func p2n(v: i64) -> i64 |
| 20 | func p2_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 22 | func main(argc: i64, argv: *i64) -> i64 |