Socket.send

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

  1. ptrdiff_t send(const(void)[] buf, SocketFlags flags)
    class Socket
    @trusted
    ptrdiff_t
    send
    (
    const(void)[] buf
    ,)
  2. ptrdiff_t send(const(void)[] buf)

Return Value

Type: ptrdiff_t

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

Meta

Suggestion Box / Bug Report