The OpenD Programming Language

Socket.receiveFrom

Receive data and get the remote endpoint Address. If the socket is blocking, receiveFrom waits until there is data to be received.

  1. ptrdiff_t receiveFrom(void[] buf, SocketFlags flags, Address from)
  2. ptrdiff_t receiveFrom(void[] buf, Address from)
  3. ptrdiff_t receiveFrom(void[] buf, SocketFlags flags)
    class Socket
    @trusted
    ptrdiff_t
    receiveFrom
    (
    scope void[] buf
    ,)
  4. ptrdiff_t receiveFrom(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