Next: Listen
Up: Functions and Procedures
Previous: GetSocketName
Function GetSocketOptions (Sock,Level,OptName:Longint;Var OptVal;optlen:longint) : Longint;
GetSocketOptions gets the connection options for socket Sock.
The socket may be obtained from different levels, indicated by Level,
which can be one of the following:
- SOL_SOCKET
- From 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 getsockopt (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
Thu Sep 10 13:59:33 CEST 1998