Socket.send

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

Send data on the connection. If the socket is blocking and there is no buffer space left, send waits.

Returns

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

failure.

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

ditto