vibe.d beta banner
get vibe.d
0.10.1

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

Function UDPConnection.send

Sends a single packet.

void send (
  scope const(ubyte)[] data,
  scope const(NetworkAddress*) peer_address = null
) @safe;

If peer_address is given, the packet is send to that address. Otherwise the packet will be sent to the address specified by a call to connect().

Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

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