The OpenD Programming Language

Socket.receive

Receive data on the connection. If the socket is blocking, receive waits until there is data to be received.

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

Return Value

Type: ptrdiff_t

The number of bytes actually received, 0 if the remote side has closed the connection, or Socket.ERROR on failure.

Meta