Berkeley.receiveFrom

Receive data and get the remote endpoint Address. Returns the number of bytes actually received, 0 if the remote side has closed the connection, or ERROR on failure. If the socket is blocking, receiveFrom waits until there is data to be received.

  1. int receiveFrom(void[] buf, SocketFlags flags, Address from)
    struct Berkeley
    const
    int
    receiveFrom
  2. int receiveFrom(void[] buf, Address from)
  3. int receiveFrom(void[] buf, SocketFlags flags)

Meta