Skip to main content

Module phantom_udp

Module phantom_udp 

Source
Expand description

PhantomUDP — native datagram transport over raw UDP (Phase 1). See docs/plans/phantomudp-phase1-design.md.

Modules§

datagram
Map a logical frame to one or more UDP datagrams (and back), fragmenting frames larger than the path MTU. Reuses FragmentAssembler (with its anti-DoS bounds) by zero-padding the 8-byte cid to the assembler’s [u8;16] key.
envelope
PhantomUDP outer datagram envelope — transport framing (NOT the frozen inner wire). Every UDP datagram begins with [flags: u8][cid: [u8;8]]. Like TcpSessionTransport’s 4-byte length prefix, this is outside core/tests/wire_vectors and does not bump WIRE_VERSION/PROTOCOL_VERSION.