- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
FTP客户程序设计
摘 要
互联网的一大特点是实现信息共享,文件传输是信息共享的十分重要的内容之一。随之出现了许多FTP服务器来共享一些信息资源,编写一个操作简单,方便的FTP客户端来下载这些资源受到了人们的极大欢迎。
本论文的主要工作集中在:学习了解TCP/IP协议和文件传输协议、了解和掌握FTP的工作原理及网络编程原理、熟悉开发的设计和实现FTP客户端。本次设计使用流行的作为此次设计的开发语言,并采用C/S结构作为FTP的网络结构,论文首先对和C语言做了简要说明,然后介绍了FTP的原理最后全面的介绍了FTP客户端的设计、实现以。Abstract
The predominant characteristic of network is information resources sharing. Document transmission is an important component element. Because of this, many File Transfer Protocol (FTP) servers appeared, and won its way into favor.
This thesis work focuses on: learning to understand TCP / IP protocol and file transfer protocol, understanding and knowledge of FTP works and network programming principle, familiar with Visual Studio 2005 development tools used by C++ language design and implementation of FTP client. FTP client and file transfer into connector module. Connection module connected to the host and server functions; file transfer module, after a successful connection with the server host to upload and download files function.
The design using the popular C + + as the design of the development of language, and using C/S structure as FTP, network structure, the paper first, MFC and C++ language gives a brief description, and then introduced the FTP-related concepts and FTP, Works, the last comprehensive introduction to the FTP clients design, implementation, functional testing.
Key words: C++ Network Programming File Transfer Protocol Client
目 录
第一章 绪论 1
1.1 课题背景 1
1.2 国内外研究现状 1
1.3 本课题研究的研究方法及意义 2
1.4 论文的组织结构 2
第二章 技术背景 5
2.1 开发语言选择 5
2.2 MFC简介 5
2.3 套接字简介 6
2.3.1 流式套接字 7
2.3.2 数据报套接字 7
2.3.3 原始套接字 8
2.4 FTP简介 8
2.4.1 FTP工作原理 9
2.4.2 FTP工作模式 11
2.4.3 FTP命令与FTP响应信息 14
2.5 小结 17
第三章 FTP软件需求分析 19
3.1 环境需求 19
3.2 需要完成目标 19
3.3 功能需求 19
3.4 小结 20
第四章 FTP软件设计与实现 21
4.1 框架资源的设计 21
4.1.1 编辑对话框资源 21
4.1.2 添加新类和编辑各类的成员变量及函数 21
4.2 代码的实现 22
4.2.1 初始化函数代码 22
4.2.2 连接服务器函数代码 25
4.2.3 上传或下载文件函数代码 26
4.2.4 断开连接函数代码 27
4.3 小结 29
第五章 运行与测试 31
5.1测试截图 31
5.2 小结 34
第六
文档评论(0)