Function UDPConnection.recv
Receives a single packet.
ubyte[] recv
(
ubyte[] buf = null,
NetworkAddress* peer_address = null
) @safe;
ubyte[] recv
(
core .time .Duration timeout,
ubyte[] buf = null,
NetworkAddress* peer_address = null
) @safe;
If a buffer is given, it must be large enough to hold the full packet.
The timeout overload will throw an Exception if no data arrives before the specified duration has elapsed.