Showing changes from revision #0 to #1:
Added | Removed | Changed
Entry | |
---|---|
R0 | Socket descriptor |
R1 | Pointer to buffer containing the data to send |
R2 | Size of buffer |
Exit | |
---|---|
R0 | Number of bytes sent |
The purpose of this call is to write data to a socket. It is equivalent to calling send() with flags of 0.
This SWI directly corresponds to the function write and would ordinarily be called from C using the socketwrite()
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 write()
function serves to write to either type.