=> R0 = Socket descriptor
R1 = Pointer to buffer for received data
R2 = Size of buffer
R3 = Flags
R4 = Pointer to address to be filled in
R5 = Pointer to size of address block
<= R0 = Amount of data received
This SWI was introduced with Internet 5.00 and should be used in preference to Socket_Recvfrom.
This call has identical functionality to Socket_Recv and recv() except that the address of the host that sent the data will be returned in the block supplied. 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.
C definition SWI definition
|
|
|