Skip to main content

Module udp

Module udp 

Source
Expand description

Parsing and serialization of UDP packets.

The UDP packet format is defined in RFC 768.

Structs§

UdpEnvelope
UDP packet context relevant to serialization.
UdpPacket
A UDP packet.
UdpPacketBuilder
A builder for UDP packets.
UdpPacketRaw
A partially-parsed and not yet validated UDP packet.
UdpParseArgs
Arguments required to parse a UDP packet.

Constants§

CHECKSUM_OFFSET
The offset of the checksum field, in bytes, from the start of a UDP header.
HEADER_BYTES
The size of a UDP header in bytes.

Traits§

UdpParseContext
Context for parsing UDP packets that may be subject to hardware checksum offloading.
UdpSerializationContext
A trait for UDP serialization contexts.