code wiki / (root) / nx_quic_hdr.nx

nx_quic_hdr.nx

buildroot/runtime/nx_quic_hdr.nx

3355 B67 linesdepth 3pulls 3 transitivereach 2 importersview sourcekind tooltopic quic
docsdependenciesstructsconstsfunctions

about

nx_quic_hdr.nx -- RUNG 3 of the sovereign QUIC transport: long + short packet headers (RFC 9000 sec 17.2 / 17.3). Long header carries the handshake (Initial/0-RTT/Handshake/Retry) with version + connection IDs; short header is the 1-RTT data path that carries DATAGRAM frames. Parsing these exactly (form bit, fixed bit, type, CIDs, packet-number length) is the frame around everything the relay and client exchange. No float. license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_quic_wire.nx nx_quic_hdr.nx nx_quic_hdr_test.nx nx_quic_udp_test.nx

imports: nx_quic_wire.nx

imported by: nx_quic_hdr_test.nxnx_quic_udp_test.nx

structs

none

consts

none

functions

13func quic_lhdr_parse(buf: *u8, n: i64, info: *i64) -> i64
called by 1: main
34func quic_lhdr_encode(out: *u8, ptype: i64, version: i64, dcid: *u8, dcil: i64, scid: *u8, scil: i64, pn_len: i64) -> i64
called by 1: main
50func quic_shdr_encode(out: *u8, spin: i64, keyphase: i64, pn_len: i64, dcid: *u8, dcil: i64) -> i64
called by 2: mainmain
56func quic_shdr_parse(buf: *u8, n: i64, dcil: i64, info: *i64) -> i64
called by 1: main
67func main() -> i64 { return 0 }