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)
  2. ptrdiff_t send(const(void)[] buf)
    class Socket
    ptrdiff_t
    send
    (
    scope const(void)[] buf
    )

Return Value

Type: ptrdiff_t

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

Meta