Declare Function setsockopt Lib "wsock32.dll" (ByVal s As Long, ByVal Level As Long, ByVal optname As Long, optval As Any, ByVal optlen As Long) As Long?s
[in] A descriptor identifying a socket.?level
[in] The level at which the option is defined; the supported levels include SOL_SOCKET and IPPROTO_TCP. See Protocol-specific Annex (a separate document included with the Win32 SDK) for more information on protocol-specific levels.?optname
[in] The socket option for which the value is to be set.?optval
[in] A pointer to the buffer in which the value for the requested option is supplied.?optlen
[in] The size of the optval buffer.