AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     Socket descriptor
     R1 =     Pointer to buffer for received data
     R2 =     Size of buffer
     R3 =     Flags
<=     R0 =     Amount of data received

This call reads as much data as possible from the specified socket, and returns it in the supplied buffer. If no data is available, the call will block until data is available, unless the socket has been marked non-blocking, in which case -1 will be returned and errno set to EWOULDBLOCK.

For stream sockets, this call may return zero as an indication that the other end has closed the connection.

C definition     SWI definition

[sh-index] Back to list of manuals