EventDriver.listenUDP

Creates a new UDP socket and sets the specified address/port as the destination for packets.

If a bind port is specified, the socket will be able to receive UDP packets on that port. Otherwise, a random bind port is chosen.

interface EventDriver
@safe
UDPConnection
listenUDP
(
ushort port
,
string bind_address = "0.0.0.0"
)

Meta