UdpSocket.sendToAddress

DatagramResult sendToAddress(scope const(ubyte)[] data, SocketAddress dest) @trusted

Send a datagram to a specific destination address.

In WSAPoll mode, data is borrowed directly by the OS sendto call (Borrow semantics). In IOCP overlapped mode, data is copied into an internal buffer (Copy semantics). In both cases the caller may reuse or free the buffer immediately after this call returns. * *

Parameters