文件名称:wangluobianchengshiyan(4)
-
所属分类:
- 标签属性:
- 上传时间:2012-10-29
-
文件大小:18.78kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1.实现一个采用用户自定义协议的文件传输服务器FileServer和客户FileClient。当FileClient发送请求“GET xxx.xxx”时,FileServer就把xxx.xxx文件发送给FileClient,FileClient把该文件保存到客户端的本地文件系统中,当FileClient发送请求“PUT xxx.xxx”时,FileServer就做好接收xxx.xxx文件的准备,FileClient接着发送xxx.xxx文件的内容,FileServer把接收到的文件内容保存到服务器的本地文件系统。GET或PUT命令中的文件允许采用相对路径,其根路径由用户自定义的FILE_PATH系统属性指定。
2.编写一服务器程序和客户程序,要求客户每输入一行数据,服务器接收后加上echo:回送给客户程序,要求服务器程序采用多线程方式和线程池为每个客户分配一个线程。-1. To implement a user-defined using file transfer protocol server and client FileServer
FileClient. When FileClient send the request "GET xxx.xxx" when, FileServer put
xxx.xxx file to FileClient, FileClient to save the file to the client s local
File system, when FileClient send the request "PUT xxx.xxx" when, FileServer to do
The preparation of documents to receive xxx.xxx, FileClient contents of the file and then send xxx.xxx,
FileServer the received contents of the file saved to the server s local file system. GET or PUT command
The files that allow the use of relative path, the root path defined by the user system is a FILE_PATH
Of the designation.
2. To write a server program and client programs, requirements for every input line of data after the server receives
With echo: back to the client, ask the server program uses multiple threads and thread pools for each
A customer is assigned a thread.
2.编写一服务器程序和客户程序,要求客户每输入一行数据,服务器接收后加上echo:回送给客户程序,要求服务器程序采用多线程方式和线程池为每个客户分配一个线程。-1. To implement a user-defined using file transfer protocol server and client FileServer
FileClient. When FileClient send the request "GET xxx.xxx" when, FileServer put
xxx.xxx file to FileClient, FileClient to save the file to the client s local
File system, when FileClient send the request "PUT xxx.xxx" when, FileServer to do
The preparation of documents to receive xxx.xxx, FileClient contents of the file and then send xxx.xxx,
FileServer the received contents of the file saved to the server s local file system. GET or PUT command
The files that allow the use of relative path, the root path defined by the user system is a FILE_PATH
Of the designation.
2. To write a server program and client programs, requirements for every input line of data after the server receives
With echo: back to the client, ask the server program uses multiple threads and thread pools for each
A customer is assigned a thread.
相关搜索: 客户 服务器 文件 多线程
自定义协议
(系统自动生成,下载前可以参看下载内容)
下载文件列表
网络编程实验 (4)_070420116王商堂.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.