|
|
|
|
|
|
|
|
|
|
|
|
|
172, 5/9 |
|
han7685 | |||||||
¼ÒÄÏÇÁ·Î±×·¡¹Ö ¿À·ùÁ»Ã£¾ÆÁÖ¼¼¿ä~¤Ð | |||||||
http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_Network&no=100 [º¹»ç]
Hit : 3317 Date : 2012/11/19 10:55
|
|||||||
º¸¾È¿Õ | Ŭ¶óÀ̾ðÆ® sockÀ» Á¤ÇØÁÖ´Â clientlenÀ» intŸÀÔÀÌ ¾Æ´Ï¶ó socklen_t ÀÌ°Å¿´³ª ÀÌ Å¸ÀÔÀ¸·Î ÇØÁÖ¼¼¿ä. Ã¥¿¡ ±× ºÎºÐ º¸½Ã¸é µÉ°Å¿¡¿ä. | 2012/11/21 | |
cd80 | mainÇÔ¼ö¿¡¼ »ç¿ëµÈ if¹®À» º¸½Ã¸é if((server_sockfd = socket (AF_INET,SOCK_STREAM, IPPROTO_TCP)) == -1) { perror("socket error :"); exit(0); } } ÀÌ·¸°Ô µÅÀִµ¥ if¹®À» ³¡³½ } ´ÙÀ½¿¡ ÀÖ´Â } ¶§¹®¿¡ ¿¡·¯°¡ ³³´Ï´Ù |
2012/11/21 | |
|
|