UdpSocket.sendToAddress

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

Send a datagram to a specific destination address.

data is borrowed for the duration of the call only.

Parameters

dataDatagram payload to send.
destDestination socket address.

Returns

Result indicating success or failure reason.