code wiki / (root) / nx_gap_junction.nx

nx_gap_junction.nx

buildroot/runtime/nx_gap_junction.nx

3209 B97 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic gap
docsdependenciesstructsconstsfunctions

about

nx_gap_junction.nx -- direct private channel (VPN/tunnel class). Biology: gap junctions connect adjacent cells' cytoplasm directly, allowing ions + small molecules to pass without entering extracellular space. Substrate: encrypted private channel between two peers bypassing the public mesh.

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_tier.nx nx_gap_junction.nx nx_gap_junction_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_gap_junction_test.nx

structs

23struct NxGapJunction

consts

11const NX_GJ_STATE_PENDING: nx_int = 0 // handshake started
12const NX_GJ_STATE_OPEN: nx_int = 1 // active
13const NX_GJ_STATE_CLOSED: nx_int = 2
14const NX_GJ_STATE_FAILED: nx_int = 3
15const NX_GJ_N_STATES: nx_int = 4
17const NX_GJ_V_OK: nx_int = 0
18const NX_GJ_V_ERR_INVALID: nx_int = 1
19const NX_GJ_V_ERR_KEY_MISMATCH: nx_int = 2
20const NX_GJ_V_ERR_NULL: nx_int = 3
21const NX_GJ_V_N: nx_int = 4
33const NX_GJ_BYTES: nx_int = 48

functions

35func nx_gj_state_is_valid(s: nx_int) -> nx_int
called by 1: main
41func nx_gj_v_is_valid(v: nx_int) -> nx_int
called by 1: main
47func nx_gj_new(peer_a: nx_int, peer_b: nx_int) -> *NxGapJunction
called by 1: main calls 1: sys_mmap
60func nx_gj_establish(j: *NxGapJunction,
called by 1: main
72func nx_gj_send(j: *NxGapJunction,
called by 1: main
82func nx_gj_receive(j: *NxGapJunction,
called by 1: main
92func nx_gj_close(j: *NxGapJunction) -> nx_int
called by 1: main