code wiki / (root) / nx_external_reach_probe_test.nx

nx_external_reach_probe_test.nx

buildroot/runtime/nx_external_reach_probe_test.nx

3355 B71 linesdepth 22pulls 131 transitivereach 0 importersview sourcekind gate/prooftopic external
docsdependenciesstructsconstsfunctions

about

nx_external_reach_probe_test.nx -- smoke test for the graduated nx_reach_probe_now wire-up against a real public endpoint. Mirrors nx_https_get_live_demo_test pattern: drives a real HTTPS GET against a public server with an EMPTY trust store, asserts the verdict is FAIL_TLS_HANDSHAKE (chain validation rejects without anchors). That proves the reach-probe wire-up successfully completes DNS + TCP + initial TLS bytes -- which IS the reachability signal we want to surface continuously against nishifamily.com from peer hosts. Once trust_store_alloc + Mozilla CA bundle compose into a populated trust store, the same call should return NX_REACH_OK against example.com / nishifamily.com / any reachable HTTPS endpoint. expect_exit: 0 license_tier: PUBLIC_NISHI_SUBSTRATE Composes: nx_external_reach_probe (the primitive under test) nx_https_get (substrate-side network stack) nx_clock_monotonic_ns (timing) nx_x509_trust_store (empty store for handshake-fail probe)

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_external_reach_probe.nx nx_external_reach_probe_test.n

imports: nx_syscalls.nxnx_external_reach_probe.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_reach_probe_now sys_mmap ↻ trust_store_alloc sys_mmap ↻ nx_clock_monotonic_ns sys_mmap ↻ sys_clock_gettime_mono nx_https_get sys_now_ms sys_mmap ↻ sys_clock_gettime_mono ↻ nx_url_new sys_mmap ↻ nx_https_url_for_fetch nx_url_parse strlen _scheme_is_https nx_https_url_connect sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap sys_mmap ↻ nx_https_build_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_setsockopt ↻ nx_dns_resolve_default nx_dns_resolve_with_failov nx_dns_resolve_a_record nx_tls13_client_session_ru nx_tls13_client_session_ne sys_mmap ↻

structs

none

consts

none

functions

27func main() -> i64