2010-05-28 3 views

Répondre

1

Beej's Guide to Network Programming un excellent endroit pour commencer à chercher.

Si vous parlez spécifiquement de get/setsockopt, Beej dit this. Il note en outre que get/setsockopt dépend souvent du système d'exploitation, auquel cas consultez votre page de manuel, MSDN ou autre.

0

Voici la liste de http://www.sockets.com

 
Value  Type  Meaning 
--------------- --------------- ----------------------------------------------- 
SO_BROADCAST BOOL  Allow transmission of broadcast messages on the 
       socket. 

SO_DEBUG BOOL  Record debugging information. 

SO_DONTLINGER BOOL  Don't block close waiting for unsent data to be 
       sent. Setting this option is equivalent to 
       setting SO_LINGER with l_onoff set to 
       zero. 

SO_DONTROUTE BOOL  Don't route: send directly to interface. 

SO_KEEPALIVE BOOL  Send keepalives 

SO_LINGER struct linger Linger on close if unsent data is present 
     FAR * 

SO_OOBINLINE BOOL  Receive out-of-band data in the normal data 
       stream. 

SO_RCVBUF int  Specify buffer size for receives 

SO_REUSEADDR BOOL  Allow the socket to be bound to an address 
       which is already in use. (See bind().) 

SO_SNDBUF int  Specify buffer size for sends 

TCP_NODELAY BOOL  Disables the Nagle algorithm for send 
       coalascing. 

SO_ACCEPTCON BOOL  Socket is listening 

SO_ERROR int  Get error status and clear 

SO_RCVLOWAT int  Receive low water mark 

SO_RCVTIMEO int  Receive timeout 

SO_SNDLOWAT int  Send low water mark 

SO_SNDTIMEO int  Send timeout 

SO_TYPE  int  Type of the socket 

IP_OPTIONS   Set options field in IP header.