ftp服务器的设计与实现(源码)
本系统使用的开发环境为VC6.0,系统的整体模式为C/S模式,使用多线程的编程模型,能够同时处理来自客户端的多个连接。系统有着良好的出错处理,能够应对多种突发状况,当远程客户端异常断开时,FTP服务器能够动态检测到客户端的异常,及时的释放该连接所占用的内存。服务器还提供了一个配置界面,方便管理员及时的进行用户管理,包括添加新用户,删除一些无效用户以及更改用户的读写等权限。而且本系统具有较强的扩展性,能够根据实际的需要增加或移除一些功能。
关键词 FTP服务器,套接字,多线程,C/S模式
毕业设计说明书(论文)外文摘要
Title The Design and Implementation of
FTP Server
Abstract
With the increasing development of Internet t *景先生毕设|www.jxszl.com +Q: ¥351916072¥
e The Design and Implementation of
FTP Server
Abstract
With the increasing development of Internet technologies, The demand for file-sharing services are further increased, Thus the scope of FTP server is also increasingly widespread. So I design and implement a FTP server on Windows family of operating systems base on socket. The server can be used for file upload and downloading files and creating directories and other services.
The system development environment is VC6.0, the whole model system is C/S mode, multi-threaded programming model, capable of handling multiple connections from clients. The system has a great mechanism of error handling, It can cope with a variety of unexpected situations, while a remote client disconnects abnormally, The FTP server could dynamically detect the exceptions from the client and timely release the memory occupied by the connection. The FTP server also provides a configuration interface for administrators to manage users effectively, including adding new users, deleting users, and change the read and write permissions for users. And the scalability of this system is strong enough to add or remove several functions according to actual needs.
Keywords ftp server, winsock, multithreading, c/s mode
目 录
1 引言 1
1.1 课题背景 1
1.2 发展现状 1
1.3 开发环境与方法 2
2 系统概述 2
2.1 系统简介 2
2.2 现有的FTP服务器 3
3 需求分析 4
3.1 可行性分析 4
3.2 需求概述 4
3.3 功能要求 5
3.4 性能要求 5
4 概要设计 5
4.1 数据结构设计 5
4.2 接口设计 6
4.3 出错处理设计 8
5 详细设计 8
5.1 系统结构 8
5.2 功能模块设计 9
5.3 配置模块设计 15
6 系统测试 16
6.1 配置模块测试 16
6.2 功能模块测试 18
结 论 32
致 谢 33
参 考 文 献 34
1 引言
1.1 课题背景
随着移动互联网技术的日益普及和发展,越来越多的人们选择将自己的计算机接入互联网。但在因特网发展的初期阶段,用FTP传送的数据量占据着整个因特网通信量的三分之一左右,那时候FTP所产生的通信量比电子邮件和域名解析系统所产生的通信量还要大。只是到了1995年,WWW的通信量才首次超过了FTP[1]。FTP对互联网技术的普及作用是不容忽视的。
FTP是File Transfer Protocol的缩写,顾名思义,就是
原文链接:http://www.jxszl.com/jsj/jsjkxyjs/32948.html