code wiki / _hdl_build / nx_connect_graceful_degrade.nx

nx_connect_graceful_degrade.nx

buildroot/runtime/_hdl_build/nx_connect_graceful_degrade.nx

4378 B65 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic connect
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_connect_graceful_degrade.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.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 gw sys_write gn sys_exit

structs

none

consts

13const GD_C: i64 = 5 // network conditions on the censorship/degradation ladder
14const GD_T: i64 = 4 // transports: 0=direct 1=fallback-TLS 2=bridge-relay 3=store-and-forward(always)

functions

16func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
19func main() -> i64