FTP客户端软件的设计与实现

2019-06-02 13:15

XX大学毕业设计

题 目:FTP客户端软件的设计与实现

指导教师:XXX 职称:副教授

学生姓名: XXX 学号: 201XXXXXXXXX 专业: 计算机科学与技术 院(系): 信息工程学院 完成时间: 2014 年 5 月 9 日

2014 年 5 月 9 日

FTP客户端设计与实现

摘 要

信息时代的到来,信息的交流变得越来越重要,而信息的交流离不开文件的传输。基于FTP的文件传输系统意在搭建一个文件传输平台,使其在安全、透明、快捷的环境下来进行文件传输。

网络上进行信息共享或文件传输,都是基于某种协议而进行的,FTP是人们在网络中进行文件传输普遍采用的一种协议。系统使用流行的Java作为开发语言,采用C/S模式作为网络结构,利用套接字编程实现多线程传输。

论文首先对现在常用的FTP进行了分析,然后介绍了系统的需求分析和设计过程,给出了服务器和客户端的功能模块及总体流程,最后给出了网络文件传输系统服务器和客户端的编码实现,并对系统各个功能的实现进行了测试,分析优缺点和总结。

通过测试,该系统实用、界面简单,能进行文件上传和下载并支持多线程,是一个比较好的文件传输系统。

关键词:文件传输协议,TCP/IP,多线程,套接字

Design and implementation of an FTP client

Abstract

The arrival of the information age, the exchange of information is becoming increasingly important, and the exchange of information can not be separated file transfer . FTP-based file transfer system is intended to set up a file transfer platform , so in a safe , transparent and efficient environment down the file transfer.

Information sharing on a network or file transfer , are carried out based on a protocol , FTP is a protocol for file transfer people to be widely used in the network. The system uses the popular Java as a development language , using C / S mode as the network structure , the use of socket programming multithreaded transfers.

Firstly, on the now commonly used FTP analyzed, and then introduced the system requirements analysis and design process , gives the server and client modules and the overall process . Finally, network file transfer server and client code implementation, and realization of various functions system has been tested , analyzed and summarized the advantages and disadvantages .

Through testing, the system is practical , simple interface , files can be uploaded and downloaded and supports multi-threading , is a good file transfer system .

Keywords : file transfer protocol , TCP / IP, multi-threaded, socket

目 录

第1章 绪论 .................................................................. 6 1.1 课题背景 ................................................................. 6

1.2 课题现状 ............................................................. 7 1.3 本文组织方式 ......................................................... 8

第2章 开发工具及关键技术 .................................................... 8

2.1 开发工具 ............................................................. 8 2.2 关键技术 ............................................................ 10

2.2.1 C/S架构简介 ...................................................................................................... 10 2.2.2 SOCKET网络编程 ................................................................................................ 11 2.2.3 FTP协议简介 .................................................................................................... 11

第3章 客户端文件传输系统设计 ............................................... 13

3.1客户端需求分析 ....................................................... 13

3.1.1 用户需求 ............................................................................................................. 13 3.1.2 功能需求 ............................................................................................................... 13 3.1.3 性能需求 ............................................................................................................... 13 3.2客户端设计 ........................................................... 14

3.2.1 客户端整体模块 ................................................................................................. 14 3.2.2 客户端流程划分 ............................................................................................... 15 3.3 ftpclient类 ........................................................ 16 3.4实现思路 ............................................................. 17

第4章 文件传输系统的实现 ................................................... 18

4.1 界面模块实现 ........................................................ 18 4.2 登录界面实现 ........................................................ 18 4.3 浏览程序 ............................................................ 24

4.3.1浏览服务器端目录程序 ...................................................................................... 24 4.4 文件的上传与下载 .................................................... 27

4.4.1文件下载程序 ........................................................................................................ 27 4.4.2文件上传程序 ...................................................................................................... 27

第5章 系统测试及问题处理 ................................................... 35

5.1测试环境 ............................................................. 35 5.2 测试结果 ............................................................ 36

5.2.1登录模块测试 ...................................................................................................... 36 5.2.2系统兼容性测试 .................................................................................................... 36 5.3 测试总结 ............................................................ 36

结 论................................................................... 38 参考文献.................................................................... 39 致 谢..................................................................... 40 声 明.................................................................... 41


FTP客户端软件的设计与实现.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:高考数学艺体生百日突围专题(11)立体几何(基础篇,含答案)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: