fpsetsockopt function
Set socket options.
Declaration
function fpsetsockopt(s: cint; level: cint; optname: cint;
optval: pointer; optlen: TSockLen): cintDescription
fpSetSockOpt sets the connection options for socket
S.
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
LeveltoXXX, the protocol number of the protocol which should interpret the option.
The actual option is stored in a buffer pointed to by optval, with length
optlen.
For more information on this call, refer to the UNIX manual page
setsockopt
Errors
Errors are reported in SocketError, and include the following:
- ESockEBADF
- The socket descriptor is invalid.
- ESockENOTSOCK
- The descriptor is not a socket.
- ESockEFAULT
-
OptValpoints outside your address space.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
