wangluobianchengshiyan(4)

所属分类:Java编程
开发工具:Java
文件大小:19KB
下载次数:55
上传日期:2010-11-22 09:26:42
上 传 者cn_wst
说明:  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.)

文件列表:
网络编程实验 (4)_070420116王商堂.doc (95744, 2010-11-20)

近期下载者

相关文件


收藏者