Socket.sendTo

ptrdiff_t sendTo(scope const(void)[] buf, SocketFlags flags, Address to) @trusted

Send data to a specific destination Address. If the destination address is not specified, a connection must have been made and that address is used. If the socket is blocking and there is no buffer space left, sendTo waits.

Returns

The number of bytes actually sent, or Socket.ERROR on

failure.

ptrdiff_t sendTo(scope const(void)[] buf, Address to)

ditto

ptrdiff_t sendTo(scope const(void)[] buf, SocketFlags flags) @trusted

ditto

ptrdiff_t sendTo(scope const(void)[] buf)

ditto