ºìÁªLinuxÃÅ»§
Linux°ïÖú

linuxÏÂÒªÏëreuse portÔõô°ì

·¢²¼Ê±¼ä:2008-07-15 09:44:33À´Ô´:ºìÁª×÷Õß:gfhlole
±¾ÕÂÖ÷Òª½éÉÜÁËÌ×½Ó¿ÚÑ¡Ï°üÀ¨»ù±¾Ñ¡ÏIPv4, IPv6ºÍTCPÑ¡ÏȻºóÊÇһЩº¯Êý£¬getsockopt, setsockopt, fcntlµÄʹÓ㬵±È»»¹Ìáµ½ÁËioctl¡£

ÕâЩѡÏîÎÒÒÔÇ°¼¸ºõ¶¼Ã»ÓнӴ¥¹ý£¬Ã»ÓкÜÉî¿ÌµÄÌå»á£¬ÊéÉÏÒ²½éÉܵĺÜÇå³þÁË£¬ÏÂÃæÖ»ÊÇ°ÑLinuxÏÂÃæÖ§³ÖµÄÑ¡Ïî¼°ÆäȱʡֵÌù³öÀ´£¬¹©´ó¼Ò²Î¿¼¡££¨×¢£ºÎÒ°´ÕÕÊéÉϵÄÀý×ÓÖ´ÐУ¬Ö»ÊǶàÌí¼ÓÁ˼¸¸öÑ¡Ï

»ù±¾Ì×½Ó¿ÚÑ¡Ïî
SO_BROADCAST: default = off
SO_DEBUG: default = off
SO_DONTROUTE: default = off
SO_ERROR: default = 0
SO_KEEPALIVE: default = off
SO_LINGER: default = l_onoff = 0, l_linger = 0
SO_OOBINLINE: default = off
SO_RCVBUF: default = 87380
SO_SNDBUF: default = 16384
SO_RCVLOWAT: default = 1
SO_SNDLOWAT: default = 1
SO_RCVTIMEO: default = 0 sec, 0 usec
SO_SNDTIMEO: default = 0 sec, 0 usec
SO_REUSEADDR: default = off
SO_REUSEPORT: (undefined)
SO_TYPE: default = 1
SO_USELOOPBACK: (undefined)

//IPv4Ñ¡Ïî
IP_HDRINCL: default = off
IP_RECVDSTADDR: (undefined)
IP_RECVIF: (undefined)
IP_TOS: default = 0
IP_TTL: default = 64
//TCPÑ¡Ïî
TCP_KEEPALIVE: (undefined)
TCP_MAXRT: (undefined)
TCP_MAXSEG: default = 536
TCP_NODELAY: default = off

×¢£ºundefined¾ÍÊDz»Ö§³Ö¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ