分类号:TP311.1 U D C:D10621-408-(2007)5825-0
密 级:公 开 编 号:2003031222
成 都 信 息 工 程 学 院
学 位 论 文
FTP 客户端设计与实现
论 文 作 者 姓 名 :
何 坤 贤
申 请 学 位 专 业 :
计算机科学与技术
申 请 学 位 类 别 :
工学学士
指导教师姓名(职称):
陶德元(教授)
论 文 提 交 日 期 :
2007 年 06 月 10 日
FTP 客户端设计与实现
摘 要
互联网的一大特点是实现信息共享,文件传输是信息共享的十分重要的内容
之一。随之出现了许多 FTP 服务器来共享一些信息资源,编写一个操作简单,方
便的 FTP 客户端来下载这些资源受到了人们的极大欢迎。
FTP 客户端软件是在了解 FTP 工作原理后,利用 C#语言来设计和开发的。FTP
客户端分为连接模块、文件管理模块、文件传输模块和辅助管理模块。连接模块
实现主机与服务器的连接的功能;文件管理模块实现新建文件、删除文件等功能;
文件传输模块实现主机与服务器连接成功后上传和下载文件功能。辅助管理模块
实现一些相关功能如:读写配置 INI 文件。该 FTP 客户端软件达到了使用方便的
目标,希望开发软件的经验能为使用.NET 设计开发 Windows 应用程序 FTP 客户
端软件的初学者提供一些帮助。
关键词:.NET;C#;文件传输协议;客户端
The Design and Implementation of FTP Client
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.
C# programming language is used to develop the FTP client software after
comprehending the FTP working principle. And this FTP client software is made up
of linking module、file management module、file transmission module and assisted
management module. Linking module performs the functions of linking a host and a
server; functions of operating on files are implemented in file management module;
transmitting files is easy through applying file transmission module; assisted
management module mainly performs the functions of reading and writing the INI
files. This FTP client software is usable. And I hope the experience from this software
development can do some help to the learners who'll devote their efforts to FTP client
software development.
Key words: .NET; C#; FTP, Client
目 录
论文总页数:21 页
1 引言............................................................................................................................................1
1.1 课题背景............................................................................................................................1
1.2 国内外研究现状................................................................................................................1
1.3 本课题研究的意义............................................................................................................1
1.4 本课题的研究方法............................................................................................................2
2 技术背景....................................................................................................................................2
2.1 .NET 技术简介...................................................................................................................2
2.2 VISUAL STUDIO.NET 简介.....................................................................................................2
2.3 开发语言选择....................................................................................................................2
2.4 FTP 简介.............................................................................................................................3
2.5 FTP 工作模式.....................................................................................................................4
3 FTP 软件需求分析.....................................................................................................................6
3.1 需要完成目标....................................................................................................................6
3.2 功能需求............................................................................................................................7
3.3 环境需求............................................................................................................................7
4 FTP 软件详细设计与实现.........................................................................................................7
4.1 软件总体分析与设计........................................................................................................7
4.2 各模块具体设计................................................................................................................7
4.2.1 连接管理设计 ...........................................................................................................7
4.2.2 文件管理设计 ...........................................................................................................9
4.2.3 文件传输设计 ...........................................................................................................9
4.2.4 辅助功能设计 .........................................................................................................10
4.3 模块的程序实现..............................................................................................................10
4.3.1 连接管理的程序实现 .............................................................................................10
4.3.2 文件管理的程序实现 .............................................................................................11
4.3.3 文件传输的程序实现 .............................................................................................12
4.3.4 辅助功能的程序实现 .............................................................................................13
5 软件测试..................................................................................................................................15
5.1 测试前分析......................................................................................................................15
5.2 测试的过程与分析..........................................................................................................15
5.3 测试小结..........................................................................................................................17
结 论..........................................................................................................................................18
参考文献..........................................................................................................................................19
致 谢..........................................................................................................................................20
声 明..........................................................................................................................................21