UdpSocket.sendTo

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

Send a datagram to a specific destination.

Parameters

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

Returns

Result indicating success or failure reason.