code wiki / (root) / nx_quic_wire.nx

nx_quic_wire.nx

buildroot/runtime/nx_quic_wire.nx

4313 B93 linesdepth 2pulls 2 transitivereach 16 importersview sourcekind tooltopic quic
docsdependenciesstructsconstsfunctions

about

nx_quic_wire.nx -- RUNG 1 of the sovereign QUIC datagram transport (operator 2026-06-23: "yes i even want quic"). The resilience S-class exceed (FEC that BEATS ARQ) only materializes over an UNRELIABLE datagram transport; browsers reach that only via WebTransport = QUIC. So we build QUIC ourselves, sovereign, rung by rung, each gated against the real RFCs. This is the foundation EVERYTHING in QUIC rests on: variable-length integers (RFC 9000 sec 16) + the DATAGRAM frame (RFC 9221) that carries the unreliable video+FEC payload. Next rungs: packet headers/number, CRYPTO+TLS1.3 handshake, AEAD packet protection, ACK/loss/congestion, the H3/WebTransport session, then wire to the relay + FEC. No float. Pure integer wire codec. license_tier: ORIGINAL

dependencies 1 imports · 7 importers

nx_syscalls.nx nx_quic_wire.nx nx_quic_fec.nx nx_quic_frame.nx nx_quic_hdr.nx nx_quic_pkt.nx nx_quic_relay.nx nx_quic_transport_params.nx nx_quic_wire_test.nx

imports: nx_syscalls.nx

imported by: nx_quic_fec.nxnx_quic_frame.nxnx_quic_hdr.nxnx_quic_pkt.nxnx_quic_relay.nxnx_quic_transport_params.nxnx_quic_wire_test.nx

structs

none

consts

10const K_MAGIC_16384: i64 = 16384
11const K_MAGIC_1073741824: i64 = 1073741824
12const K_MAGIC_4611686018427387904: i64 = 4611686018427387904

functions

16func quic_varint_encode(out: *u8, val: i64) -> i64
48func quic_varint_decode(buf: *u8, n: i64, out_val: *i64) -> i64
70func quic_datagram_encode(out: *u8, payload: *u8, plen: i64) -> i64
81func quic_datagram_parse(buf: *u8, n: i64, poff: *i64) -> i64
93func main() -> i64 { return 0 }