vibe.d beta banner
get vibe.d
0.7.30

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

Prototypes

abstract ubyte[] recv(
  ubyte[] buf = null,
  NetworkAddress* peer_address = null
);

abstract ubyte[] recv(
  core.time.Duration timeout,
  ubyte[] buf = null,
  NetworkAddress* peer_address = null
);
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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