Interface UDPServer
access this type via: net.UDPServer (provides, requires or uses)
Bind a UDP server socket to receive UDP packets.
Constants
char ANY_ADDRESS[]
char ANY_ADDRESS_v4[]
char ANY_ADDRESS_v6[]
Functions
bool bind(char address[], int port)
void unbind()
Datagram recv()
Constants
ANY_ADDRESS Bind to any and all IP addresses of the host.
ANY_ADDRESS_v4 Bind to any and all IPv4 addresses of the host.
ANY_ADDRESS_v6 Bind to any and all IPv6 addresses of the host.
bool bind(char address[], int port)
Bind a UDP server socket to a given IP address and port number.
void unbind()
Unbind this socket (allowing other sockets to bind to this address/port).
Datagram recv()
Receive a UDP packet (blocks until a packet is received).