文件名称:wangluobianchengshiyan(4)
- 所属分类:
- JSP源码/Java
- 资源属性:
- [WORD]
- 上传时间:
- 2012-11-26
- 文件大小:
- 19kb
- 下载次数:
- 0次
- 提 供 者:
- cn***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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