code wiki / _hdl_build / nx_video_2party_probe.nx

nx_video_2party_probe.nx

buildroot/runtime/_hdl_build/nx_video_2party_probe.nx

4543 B74 linesdepth 20pulls 130 transitivereach 0 importersview sourcekind probetopic video
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_ws_client_session.nx nx_video_2party_probe.nx

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

main p2w sys_write nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id

structs

none

consts

13const K_MAGIC_4194304: i64 = 4194304

functions

15func p2w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
16func p2n(v: i64) -> i64
20func p2_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
22func main(argc: i64, argv: *i64) -> i64