Crate unix_udp_sock

Source
Expand description

Uniform interface to send/recv UDP packets with ECN information.

Modules§

framed
sync

Structs§

RecvMeta
Metadata about received packet. Includes which address we recv’d from, how many bytes, ecn codepoints, what the destination IP used was and what interface index was used.
Transmit
An outgoing packet
UdpSocket
Tokio-compatible UDP socket with some useful specializations.
UdpState
The capabilities a UDP socket suppports on a certain platform

Enums§

EcnCodepoint
Explicit congestion notification codepoint
Source
Select how to set the source IP - using either interface id or the IP itself

Constants§

BATCH_SIZE_CAP
Maximum number of UDP packets that can be sent by the sendmmsg/recvmmsg wrappers. Note that, for supported platforms, the OS caps the batch size at this value, but will not return an error, so this is just a suggested maximum.
DEFAULT_BATCH_SIZE
Default number of UDP packets to send/receive at a time.

Traits§

AsPtr
A buffer that can be turned into a raw ptr and has a len. Is used to be generic over Vec, u8, Bytes, BytesMut