Crate portal_puncher_sm

Source

Structs§

ConnectingState
EstablishingState
Lane
Ports
Puncher
SelectedState
SendInfo

Enums§

BlockReason
The possible reason for which a lane may get blocked.
LaneState
PacketDataError
PuncherAction
The possible actions the user of a puncher state machine should do after polling the machine.

Constants§

LANE_STATUS_SIZE
The size (in bytes) the lane status.
MAX_FRAGMENTATION_SAFE_APPLICATION_DATA
The maximum fragmentation-safe user data size on a punch packet.
MAX_FRAGMENTATION_SAFE_PAYLOAD
The maximum size of a UDP payload that can be delivered over the network guaranteeing no fragmentation occurs. https://stackoverflow.com/questions/1098897/what-is-the-largest-safe-udp-packet-size-on-the-internet
MAX_REASONABLE_APPLICATION_DATA
The maximum reasonable user data size on a punch packet.
MAX_REASONABLE_PAYLOAD
The maximum size of a UDP payload one can reasonably expect to be deliverable over the network.
MAX_RECOMMENDED_APPLICATION_DATA
The maximum recommended user data size on a punch packet.
MAX_RECOMMENDED_PAYLOAD
The maximum size of a UDP payload one can reasonably expect to be deliverable over the network without fragmentation, leaving some extra space in case any more headers are added in transit.
PACKET_HEADER_SIZE
The size (in bytes) of the puncher packet header.
PREAMBLE
The byte sequence all packets are expected to start with.
PREAMBLE_SIZE
The size (in bytes) of the PREAMBLE.