AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:     int setsockopt(int s, int level, int optname, const void *optval, int optlen);
Header:     NetLib -     sys/socket.h
     Sockets -     socklib.h
     UnixLib -     sys/socket.h

Returns:     0 for success, or EOF if failed

level can be SOL_SOCKET, or a protocol number
optval can be SOL_SOCKETIP options or TCP options

This is used to set a particular option on a socket. The level is either SOL_SOCKET for options applicable to all sockets, or a protocol number for options applicable to a certain protocol.

C definition     SWI definition

[sh-index] Back to list of manuals