Expand description
Phantom Transport Core - Types
Core types for the Phantom Universal Transport protocol:
- SessionId (256-bit, salt for encryption)
- StreamId, SequenceNumber
- PacketHeader, PacketFlags
- PhantomPacket (the single on-wire data packet)
Structs§
- Packet
Flags - Packet flags bitfield (16-bit).
- Packet
Header - Packet header — 45 bytes on the wire (the AEAD AAD).
- Phantom
Packet - Full packet with header and payload — the single on-wire data packet.
- Session
Id - 256-bit Session Identifier
Enums§
- Control
Message - Control message types for session management
- LegType
- Transport modes supported by the system
- Scheduler
Mode - Scheduling strategies for multi-path transport
- Wire
Error - Error decoding a packet header / packet from its on-wire bytes.
Constants§
- WIRE_
VERSION - The sole on-wire packet-header version byte. Pinned — the wire format is not
negotiated (pre-1.0, no users); a decoder rejects anything else. Incremented
to
2when the packet layout moved fromalkahestto the explicit big-endian codec (PacketHeader::to_wire/PacketHeader::from_wire).
Type Aliases§
- Sequence
Number - Per-stream sequence number
- Stream
Id - Stream identifier within a session