UdpSocket.sendTo

DatagramResult sendTo(scope const(ubyte)[] data, scope const(char)[] host, ushort port) @trusted

Send a datagram to a specific destination.

data is borrowed for the duration of the call only (synchronous sendto).

Parameters

dataDatagram payload to send.
hostDestination host name or IP address.
portDestination port number.

Returns

Result indicating success or failure reason.