UDPConnection.recv

Receives a single packet.

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.

  1. ubyte[] recv(ubyte[] buf, NetworkAddress* peer_address)
  2. ubyte[] recv(Duration timeout, ubyte[] buf, NetworkAddress* peer_address)
    struct UDPConnection
    ubyte[]
    recv
    (
    Duration timeout
    ,
    ubyte[] buf = null
    ,)

Meta