nx_quic_wire.nx
buildroot/runtime/nx_quic_wire.nx
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
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
| 10 | const K_MAGIC_16384: i64 = 16384 |
| 11 | const K_MAGIC_1073741824: i64 = 1073741824 |
| 12 | const K_MAGIC_4611686018427387904: i64 = 4611686018427387904 |
functions
| 16 | func quic_varint_encode(out: *u8, val: i64) -> i64 |
| 48 | func quic_varint_decode(buf: *u8, n: i64, out_val: *i64) -> i64 |
| 70 | func quic_datagram_encode(out: *u8, payload: *u8, plen: i64) -> i64 |
| 81 | func quic_datagram_parse(buf: *u8, n: i64, poff: *i64) -> i64 |
| 93 | func main() -> i64 { return 0 } |