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"
);
Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.