setsockopt
The setsockopt function sets a socket option.
int setsockopt(
  SOCKET s,
  int level,
  int optname,
  const char* optval,
  int optlen
);
Parameters
s 
[in] Descriptor identifying a socket. 
level 
[in] Level at which the option is defined; the supported levels include SOL_SOCKET and IPPROTO_TCP. See Windows Sockets 2 Protocol-Specific Annex for more information on protocol-specific levels. 
optname 
[in] Socket option for which the value is to be set. 
optval 
[in] Pointer to the buffer in which the value for the requested option is specified. 
optlen 
[in] Size of the optval buffer, in bytes. 
			
		
 
	
Partager