Expand description
UDP sockets.
How to use:
- Create a UDP socket with
Stack::add_udp_socket bindit to a local address and optionally also a remote address.- Send and receive packets.
Structs§
- Recv
Packet - A received UDP datagram.
- UdpHandle
- A handle to a UDP socket added to a
Stack. - UdpMetadata
- Metadata for a sent or received UDP datagram.
- UdpSocket
- A UDP socket borrowed from a
Stack, returned byStack::udp_socket. - UdpSocket
Iter - Iterator over the UDP sockets of a
Stack, returned byStack::udp_sockets.
Enums§
- Bind
Error - Error returned by
UdpSocket::bind. - Recv
Error - Error returned by
UdpSocket::recvand the peek methods. - Send
Error - Error returned by
UdpSocket::send_sliceandUdpSocket::send_with.