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

Çë½Ì¸ßÊÖ¼¸¸ö¹ØÓÚsocket±à³ÌµÄÎÊÌâ

·¢²¼Ê±¼ä:2011-10-19 15:04:19À´Ô´:ºìÁª×÷Õß:liuweiwei
ÇëÎÊ£¨1£©
ÔÚserver/client±à³ÌÖУ¬server³ÌÐòÖеÄIPµØÖ·ºÍ¶Ë¿ÚºÅÊÇserverµÄ»¹ÊÇclientµÄ£¿client³ÌÐòÖеÄIPµØÖ·ºÍ¶Ë¿ÚºÅÊÇserverµÄ»¹ÊÇclientµÄ£¿
ÇëÎÊ(2)
server³ÌÐòÖÐΪʲôҪÓÃbind£¨£©º¯Êý£¬ÊéÉÏ˵µÄÌ«³éÏóÁË£¬Ëüµ½µ×ÓÐʲôÓã¿
ÇëÎÊ£¨3£©
¡°Ê¹ÓÃÓï·¨¡±ÊÇʲôÄØ£¿
ÇëÎÊ£¨4£©
serverÖеĶ˿ںźÍclientÖеĶ˿ںűØÐëÏàͬÂð.?
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. viforce ÓÚ 2012-07-18 12:22:45·¢±í:

    :0w223dcͬÑù ÃÔã

  2. ssssunday ÓÚ 2011-11-15 17:09:48·¢±í:

    (1)Á¬½Ó·¢ÆðÕß(connect)ÐèÒªÌí¼ÓµÄipµØÖ·ºÍ¶Ë¿ÚºÅΪĿ±êÕß(accept)µÄipºÍ¶Ë¿ÚºÅ
    (2)....
    (3)?
    (4)±ØÐëÏàͬ

  3. ai0909 ÓÚ 2011-10-21 15:37:19·¢±í:

    ·¹ý¡£¡£¡£