vibe.d beta banner
get vibe.d
0.10.0

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

Function UDPConnection.connect

Locks the UDP connection to a certain peer.

void connect (
  string host,
  ushort port
) @safe;

void connect (
  NetworkAddress address
) @safe;

Once connected, the UDPConnection can only communicate with the specified peer. Otherwise communication with any reachable peer is possible.

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

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