Skip to main content

Module types

Module types 

Source
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§

PacketFlags
Packet flags bitfield (16-bit).
PacketHeader
Packet header — 45 bytes on the wire (the AEAD AAD).
PhantomPacket
Full packet with header and payload — the single on-wire data packet.
SessionId
256-bit Session Identifier

Enums§

ControlMessage
Control message types for session management
LegType
Transport modes supported by the system
SchedulerMode
Scheduling strategies for multi-path transport
WireError
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 2 when the packet layout moved from alkahest to the explicit big-endian codec (PacketHeader::to_wire / PacketHeader::from_wire).

Type Aliases§

SequenceNumber
Per-stream sequence number
StreamId
Stream identifier within a session