Next: GetSocketOptions
Up: Functions and Procedures
Previous: GetPeerName
Function SetSocketOptions (Sock,Level,OptName:Longint;Var OptVal;optlen:longint) : Longint;
SetSocketOptions sets the connection options for socket Sock.
The socket may be manipulated at different levels, indicated by Level,
which can be one of the following:
- SOL_SOCKET
- To manipulate the socket itself.
- XXX
- set Level to XXX, the protocol number of the protocol
which should interprete the option.
For more information on this call, refer to the unix manual page setsockopt (2).
Errors are reported in SocketError, and include the following:
- SYS_EBADF
- The socket descriptor is invalid.
- SYS_ENOTSOCK
- The descriptor is not a socket.
- SYS_EFAULT
- OptVal points outside your address space.
GetSocketOptions
Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998