vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function EventDriver.listenUDP

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

abstract UDPConnection listenUDP (
  ushort port,
  string bind_address = ""
) @safe;

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.


Sönke Ludwig


© 2012-2015 RejectedSoftware e.K.


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