nx_gap_junction.nx
buildroot/runtime/nx_gap_junction.nx
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
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_gap_junction_test.nx
structs
| 23 | struct NxGapJunction |
consts
| 11 | const NX_GJ_STATE_PENDING: nx_int = 0 // handshake started |
| 12 | const NX_GJ_STATE_OPEN: nx_int = 1 // active |
| 13 | const NX_GJ_STATE_CLOSED: nx_int = 2 |
| 14 | const NX_GJ_STATE_FAILED: nx_int = 3 |
| 15 | const NX_GJ_N_STATES: nx_int = 4 |
| 17 | const NX_GJ_V_OK: nx_int = 0 |
| 18 | const NX_GJ_V_ERR_INVALID: nx_int = 1 |
| 19 | const NX_GJ_V_ERR_KEY_MISMATCH: nx_int = 2 |
| 20 | const NX_GJ_V_ERR_NULL: nx_int = 3 |
| 21 | const NX_GJ_V_N: nx_int = 4 |
| 33 | const NX_GJ_BYTES: nx_int = 48 |
functions
| 35 | func nx_gj_state_is_valid(s: nx_int) -> nx_int called by 1: main |
| 41 | func nx_gj_v_is_valid(v: nx_int) -> nx_int called by 1: main |
| 47 | func nx_gj_new(peer_a: nx_int, peer_b: nx_int) -> *NxGapJunction |
| 60 | func nx_gj_establish(j: *NxGapJunction, called by 1: main |
| 72 | func nx_gj_send(j: *NxGapJunction, called by 1: main |
| 82 | func nx_gj_receive(j: *NxGapJunction, called by 1: main |
| 92 | func nx_gj_close(j: *NxGapJunction) -> nx_int called by 1: main |