vibe.d beta banner
get vibe.d
0.7.30

Function 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.

Prototype

abstract UDPConnection listenUDP(
  ushort port,
  string bind_address = "0.0.0.0"
);
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License