[Overview][Constants][Types][Procedures and functions][Index] |
Get current socket options
Source position: socketsh.inc line 173
function fpgetsockopt( |
s: cint; |
level: cint; |
optname: cint; |
optval: pointer; |
optlen: psocklen |
):cint; |
fpGetSockOpt gets the connection option optname, for socket S. The socket may be obtained from different levels, indicated by Level, which can be one of the following:
The options are stored in the memory location pointed to by optval. optlen should point to the initial length of optval, and on return will contain the actual length of the stored data.
On success, 0 is returned. On Error, -1 is returned.
Errors are reported in SocketError, and include the following:
|
Set socket options. |
lazarus-ccr.sourceforge.net |