code wiki / _hdl_build / nx_sig_min_probe.nx

nx_sig_min_probe.nx

buildroot/runtime/_hdl_build/nx_sig_min_probe.nx

2469 B64 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_sig_min_probe.nx -- minimal bisect daemon: accept ONE connection on 127.0.0.1:8446, run nx_ws_upgrade_handshake, print the verdict, exit. Discriminates: segfault here = upgrade-stack bug; clean verdict here = the bug lives in nx_signaling_v2's room/poll layer. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_websocket_upgrade.nx nx_sig_min_probe.nx

imports: nx_syscalls.nxnx_websocket_upgrade.nx

imported by: nobody (leaf or entry point)

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

main sys_socket sys_mmap sys_setsockopt sys_bind sys_listen p_puts sys_write sys_accept p_pn sys_mmap ↻ sys_write ↻ nx_ws_upgrade_handshake _wsu_read_headers sys_read _wsu_find_header_end _wsu_eq_cs _wsu_find_byte _wsu_eol sys_mmap ↻ _wsu_find_header _wsu_eq_ci _wsu_tolower _wsu_skip_ws _wsu_eol ↻ _wsu_next_line _wsu_eq_ci ↻ ws_accept sys_mmap ↻ ws_guid sha1 sys_mmap ↻ sha1_process_block if_ge b64_encode b64_enc_char _wsu_write_n sys_write ↻ sys_close

structs

none

consts

8const K_MAGIC_8446: i64 = 8446
9const K_MAGIC_4096: i64 = 4096

functions

11func p_puts(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
12func p_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
29func main() -> i64