Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R1 | Pointer to buffer to receive into |
R2 | Size of buffer |
Exit | |
---|---|
R0 | Number of bytes received |
The purpose of this call is to read data from a socket. It is equivalent to calling recv() with flags of 0.
This SWI directly corresponds to the function read and would ordinarily be called from C using the socketread()
function in socklib.h
.
The different function name is needed because in RISC OS file descriptors and socket descriptors come from two different number spaces, while under Unix they share the same number space so a single read()
function serves to read from either type.