AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Socket_Getsockopt - getsockopt()

In:     R0 = Socket descriptor
     R1 = Option level
     R2 = Option
     R3 = Pointer to buffer for option value
     R4 = Size of option value buffer

Out:     R0 corrupted

This call can be used to read the current value of any of the options set using Socket_Setsockopt. In addition, there are two more socket level options that can be read but not written:

SO_ERROR - Return the Unix error code for any error which has occurred on the socket, and clear the sockets error flag.

SO_TYPE - Return the socket type set when the socket was created.


[sh-index] Back to list of manuals