xarxa

Crates

git

Versions

default

Flavors

Skip to main content

Module udp

Module udp 

Source
Expand description

UDP sockets.

How to use:

  • Create a UDP socket with Stack::add_udp_socket
  • bind it to a local address and optionally also a remote address.
  • Send and receive packets.

Structs§

RecvPacket
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 by Stack::udp_socket.
UdpSocketIter
Iterator over the UDP sockets of a Stack, returned by Stack::udp_sockets.

Enums§

BindError
Error returned by UdpSocket::bind.
RecvError
Error returned by UdpSocket::recv and the peek methods.
SendError
Error returned by UdpSocket::send_slice and UdpSocket::send_with.