next up previous contents index
Next: Listen Up: Functions and Procedures Previous: GetSocketName

GetSocketOptions

   

Declaration:

Function GetSocketOptions (Sock,Level,OptName:Longint;Var OptVal;optlen:longint) : Longint;

Description:

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:

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.

See also:

GetSocketOptions



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998