(vc)ftp服务器系统设计与实现论文.doc
约37页DOC格式手机打开展开
(vc)ftp服务器系统设计与实现论文,Ŀ¼ժҪiabstractiiÇ°ÑÔ1µÚ1Õ ftpÐÒéÓëÔÀí21.1 ftp¼ò½é21.2 ftpµÄ¹¤×÷ÔÀí21.3 ftpÔËÐÐÔÀí31.4 ftpÎļþ´«ÊäÁ¬½ÓÀàÐÍ5µÚ2Õ ¿ª·¢»·¾³¼°¹¤¾ß½éÉÜ82.1 cÓïÑÔ¸ÅÊö82.2 vc+...
内容介绍
此文档由会员 wanli1988go 发布
Ŀ¼
ÕªÒª¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡I
Abstract¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡II
Ç°ÑÔ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡1
µÚ1ÕÂ FTPÐÒéÓëÔÀí¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2
1.1 FTP¼ò½é¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2
1.2 FTPµÄ¹¤×÷ÔÀí¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2
1.3 FTPÔËÐÐÔÀí¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡3
1.4 FTPÎļþ´«ÊäÁ¬½ÓÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡5
µÚ2Õ ¿ª·¢»·¾³¼°¹¤¾ß½éÉÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.1 CÓïÑÔ¸ÅÊö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.2 VC++½éÉÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.3 VC++6.0¼¯³É¿ª·¢»·¾³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.4 MFC½éÉÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡9
2.5 SOCKET¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡9
µÚ3Õ FTP·þÎñÆ÷ÐèÇó·ÖÎö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡11
3.1 FTPÎļþ´«ÊäµÄÐèÇó¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡11
3.2 Ó¦½â¾öµÄÎÊÌâ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡12
3.3 ¹¦ÄÜ·ÖÎö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡12
µÚ4Õ ϵͳÉè¼ÆÓëʵÏÖ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
4.1 ¹¦ÄÜÒªÇó¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
4.2 ¿ª·¢¹¤¾ß¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
4.3 Ö÷Òª¹¦ÄÜÓëʵÏÖ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
µÚ5Õ ϵͳ²âÊÔ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
5.1 ϵͳ¿ÉÄ@@öÏÖµÄÎÊÌâÓë²»×ã¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
5.2 ²ÉÓõIJâÊÔÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
5.3 ²âÊԵĹý³ÌÓë½á¹û·ÖÎö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
½áÂÛ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡24
²Î¿¼ÎÄÏס¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡25
¸½Â¼¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡26
ÖÂл¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡33
Ç° ÑÔ
½øÈëÐÅϢʱ´ú£¬Ëæ×Å»¥ÁªÍøÆÕ¼°£¬Ö»Òª½ÓÉÏÍøÂ磬¾ÍÄÜ´ÓÍøÉÏÕÒµ½ÅÓ´óµÄÊý¾Ý×ÊÔ´£¬ÆäÄÚÈÝ°üÂÞÍòÏ󣬿ÉÒÔ˵¼¸ºõÈκÎÈ˶¼¿ÉÒÔÔÚInternet×ÊÔ´ÖÐÕÒµ½×Ô¼ºËùÐèÒªµÄÐÅÏ¢×ÊÔ´¡£ÓÐÁËÍøÂ磬ʹÓÃÕß²»µ«¿ÉÒÔä¯ÀÀ¸÷ÖÖ¸÷ÑùµÄÐÅÏ¢×ÊÔ´£¬»¹Äܹ»½«×Ô¼º¸ÐÐËȤµÄ×ÊÔ´ÏÂÔص½±¾µØ»úÉÏ¡£ÓÉÓÚÍøÂçµÄ´ø¿í¼°¸÷ÖÖ·þÎñµÄÏÞÖÆ£¬µ¥´¿´ÓÒ³ÃæÉÏÏÂÔØÏÔµÃÓÖÂýÓÖ²»¿É¿¿£¬ËùÒÔ¾ÍÓÐÐí¶àFTP¹¤¾ßÌṩ³öÀ´¡£´Ó¸ù±¾ÉÏ˵£¬FTP¾ÍÊÇÔÚÍøÂçÖи÷ÖÖ²»Í¬µÄ¼ÆËã»úÖ®¼ä°´ÕÕTCP/IPÐÒéÀ´´«ÊäÎļþ¡£FTP²ÉÓõÄÊÇÏÖÔÚÁ÷ÐеÄClient/Serverģʽ£¬ÓÉFTP¿Í»§¶ËºÍFTP·þÎñÆ÷¶Ë³ÌÐò×é³É¡£Í¨³£·þÎñÆ÷¶ËÊÇÔ¶³Ì¶Ëµã£¬Óû§¿ÉÒÔͨ¹ýInternetÍøÂçÁ¬½Óµ½Ô¶³ÌµÄFTP·þÎñÆ÷Õ¾µã¡£·þÎñÆ÷µÄ¹¦ÄÜÊÇÖ÷ÒªµÄ¡£Ö»Óе±FTP·þÎñÆ÷Ö§³Ö¸÷ÖÖÐÒéºÍÖ¸Áîʱ£¬²ÅÄܹ»¿ª·¢ÏàÓ¦µÄ¿Í»§¶Ë³ÌÐò¡£ÏÂÃæÎÒÃǾÍÀ´½éÉÜÒ»ÏÂÎÒ×Ô¼º¿ª·¢Ò»¸öСÐÍFTP·þÎñÆ÷µÄ¹ý³ÌÓë˼·¡£
²Î¿¼ÎÄÏ×
[1] Douglas E.Comer£¬Internet¼¼Êõ»ù´¡£¨Ó¢Îİ敵ÚÈý°æ£©[M]£¬±±¾©£º »úе¹¤Òµ°æÉ磬2002
[2] Ê·±ó£¬CÓïÑÔ¹áͨ½Ì³Ì[M]£¬±±¾©£º Ç廪´óѧ³ö°æÉ磬2001
[3] ´÷·æ£¬Visual C++³ÌÐòÉè¼Æ»ù´¡[M]£¬±±¾©£º Ç廪´óѧ³ö°æÉ磬2001
[4] ÕÅÁ¦£¬Visual C++¸ß¼¶±à³Ì[M]£¬±±¾©£º ÈËÃñÓʵç³ö°æÉ磬2002
[5] Ñî¾ü£¬Visual C£«£« ʵ¼ùÓëÌá¸ß£¨ÍøÂç±à³Ìƪ£©[M]£¬±±¾©£º ÖйúÌúµÀ³ö°æ£¬2003
[6] Ñ¹ú£¬Visual C++³ÌÐò¿ª·¢°¸Àý½âÎö[M]£¬±±¾©£º Ç廪´óѧ³ö°æÉ磬2006
[7] лϣÈÊ£¬¼ÆËã»úÍøÂ磨µÚ4°æ£©[M]£¬±±¾©£º µç×Ó¹¤Òµ³ö°æÉ磬2003
ÕªÒª¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡I
Abstract¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡II
Ç°ÑÔ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡1
µÚ1ÕÂ FTPÐÒéÓëÔÀí¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2
1.1 FTP¼ò½é¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2
1.2 FTPµÄ¹¤×÷ÔÀí¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2
1.3 FTPÔËÐÐÔÀí¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡3
1.4 FTPÎļþ´«ÊäÁ¬½ÓÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡5
µÚ2Õ ¿ª·¢»·¾³¼°¹¤¾ß½éÉÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.1 CÓïÑÔ¸ÅÊö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.2 VC++½éÉÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.3 VC++6.0¼¯³É¿ª·¢»·¾³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡8
2.4 MFC½éÉÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡9
2.5 SOCKET¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡9
µÚ3Õ FTP·þÎñÆ÷ÐèÇó·ÖÎö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡11
3.1 FTPÎļþ´«ÊäµÄÐèÇó¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡11
3.2 Ó¦½â¾öµÄÎÊÌâ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡12
3.3 ¹¦ÄÜ·ÖÎö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡12
µÚ4Õ ϵͳÉè¼ÆÓëʵÏÖ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
4.1 ¹¦ÄÜÒªÇó¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
4.2 ¿ª·¢¹¤¾ß¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
4.3 Ö÷Òª¹¦ÄÜÓëʵÏÖ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡13
µÚ5Õ ϵͳ²âÊÔ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
5.1 ϵͳ¿ÉÄ@@öÏÖµÄÎÊÌâÓë²»×ã¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
5.2 ²ÉÓõIJâÊÔÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
5.3 ²âÊԵĹý³ÌÓë½á¹û·ÖÎö¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡22
½áÂÛ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡24
²Î¿¼ÎÄÏס¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡25
¸½Â¼¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡26
ÖÂл¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡33
Ç° ÑÔ
½øÈëÐÅϢʱ´ú£¬Ëæ×Å»¥ÁªÍøÆÕ¼°£¬Ö»Òª½ÓÉÏÍøÂ磬¾ÍÄÜ´ÓÍøÉÏÕÒµ½ÅÓ´óµÄÊý¾Ý×ÊÔ´£¬ÆäÄÚÈÝ°üÂÞÍòÏ󣬿ÉÒÔ˵¼¸ºõÈκÎÈ˶¼¿ÉÒÔÔÚInternet×ÊÔ´ÖÐÕÒµ½×Ô¼ºËùÐèÒªµÄÐÅÏ¢×ÊÔ´¡£ÓÐÁËÍøÂ磬ʹÓÃÕß²»µ«¿ÉÒÔä¯ÀÀ¸÷ÖÖ¸÷ÑùµÄÐÅÏ¢×ÊÔ´£¬»¹Äܹ»½«×Ô¼º¸ÐÐËȤµÄ×ÊÔ´ÏÂÔص½±¾µØ»úÉÏ¡£ÓÉÓÚÍøÂçµÄ´ø¿í¼°¸÷ÖÖ·þÎñµÄÏÞÖÆ£¬µ¥´¿´ÓÒ³ÃæÉÏÏÂÔØÏÔµÃÓÖÂýÓÖ²»¿É¿¿£¬ËùÒÔ¾ÍÓÐÐí¶àFTP¹¤¾ßÌṩ³öÀ´¡£´Ó¸ù±¾ÉÏ˵£¬FTP¾ÍÊÇÔÚÍøÂçÖи÷ÖÖ²»Í¬µÄ¼ÆËã»úÖ®¼ä°´ÕÕTCP/IPÐÒéÀ´´«ÊäÎļþ¡£FTP²ÉÓõÄÊÇÏÖÔÚÁ÷ÐеÄClient/Serverģʽ£¬ÓÉFTP¿Í»§¶ËºÍFTP·þÎñÆ÷¶Ë³ÌÐò×é³É¡£Í¨³£·þÎñÆ÷¶ËÊÇÔ¶³Ì¶Ëµã£¬Óû§¿ÉÒÔͨ¹ýInternetÍøÂçÁ¬½Óµ½Ô¶³ÌµÄFTP·þÎñÆ÷Õ¾µã¡£·þÎñÆ÷µÄ¹¦ÄÜÊÇÖ÷ÒªµÄ¡£Ö»Óе±FTP·þÎñÆ÷Ö§³Ö¸÷ÖÖÐÒéºÍÖ¸Áîʱ£¬²ÅÄܹ»¿ª·¢ÏàÓ¦µÄ¿Í»§¶Ë³ÌÐò¡£ÏÂÃæÎÒÃǾÍÀ´½éÉÜÒ»ÏÂÎÒ×Ô¼º¿ª·¢Ò»¸öСÐÍFTP·þÎñÆ÷µÄ¹ý³ÌÓë˼·¡£
²Î¿¼ÎÄÏ×
[1] Douglas E.Comer£¬Internet¼¼Êõ»ù´¡£¨Ó¢Îİ敵ÚÈý°æ£©[M]£¬±±¾©£º »úе¹¤Òµ°æÉ磬2002
[2] Ê·±ó£¬CÓïÑÔ¹áͨ½Ì³Ì[M]£¬±±¾©£º Ç廪´óѧ³ö°æÉ磬2001
[3] ´÷·æ£¬Visual C++³ÌÐòÉè¼Æ»ù´¡[M]£¬±±¾©£º Ç廪´óѧ³ö°æÉ磬2001
[4] ÕÅÁ¦£¬Visual C++¸ß¼¶±à³Ì[M]£¬±±¾©£º ÈËÃñÓʵç³ö°æÉ磬2002
[5] Ñî¾ü£¬Visual C£«£« ʵ¼ùÓëÌá¸ß£¨ÍøÂç±à³Ìƪ£©[M]£¬±±¾©£º ÖйúÌúµÀ³ö°æ£¬2003
[6] Ñ¹ú£¬Visual C++³ÌÐò¿ª·¢°¸Àý½âÎö[M]£¬±±¾©£º Ç廪´óѧ³ö°æÉ磬2006
[7] лϣÈÊ£¬¼ÆËã»úÍøÂ磨µÚ4°æ£©[M]£¬±±¾©£º µç×Ó¹¤Òµ³ö°æÉ磬2003