Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R1 | Pointer to an array of buffer descriptors |
R2 | Number of buffer descriptors |
Exit | |
---|---|
R0 | Number of bytes received |
The purpose of this call is to read data from a socket from a vector of buffer descriptors. It is equivalent to calling read() except in the way the buffers need not be contiguous.
This SWI directly corresponds to the function readv and would ordinarily be called from C using the socketreadv()
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 readv()
function serves to read from either type.