文件名称:my_scpserver.tar
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个实现linux系统下的scp的命令相同功能的程序,客户端和服务端通信使用了自己定义了的通信协议。
文件传送协议格式:
服务器路径#服务器上的文件名#操作类型#文件大小
操作类型:0代表上传操作 1代表下载操作
文件大小:上传下载的文件大小
服务器返回的消息类型:
0 :服务器创建文件失败
1:服务器操作成功
2:文件大小不同 (未实现)
注意:
1:正则表达式没有实现
2:其余实现
3:服务器可以为多个客户端服务,用多进程实现-This is a linux system realize the scp command functions the same procedures, client and client communication services using its own definition of the communication protocol. File Transfer Protocol format: server path# Server 23 file name! Operation type# File size operation types: 0 From operated on behalf of one operation on behalf of download file size: From the size of the downloaded file to return to the news server type: 0 : The server failed to create file 1: Server operation successful 2: documents of different sizes (not realize) Note: 1: regular expression did not realize 2: the rest of the realization of 3: The server can service multiple clients, and realize multi-process
文件传送协议格式:
服务器路径#服务器上的文件名#操作类型#文件大小
操作类型:0代表上传操作 1代表下载操作
文件大小:上传下载的文件大小
服务器返回的消息类型:
0 :服务器创建文件失败
1:服务器操作成功
2:文件大小不同 (未实现)
注意:
1:正则表达式没有实现
2:其余实现
3:服务器可以为多个客户端服务,用多进程实现-This is a linux system realize the scp command functions the same procedures, client and client communication services using its own definition of the communication protocol. File Transfer Protocol format: server path# Server 23 file name! Operation type# File size operation types: 0 From operated on behalf of one operation on behalf of download file size: From the size of the downloaded file to return to the news server type: 0 : The server failed to create file 1: Server operation successful 2: documents of different sizes (not realize) Note: 1: regular expression did not realize 2: the rest of the realization of 3: The server can service multiple clients, and realize multi-process
(系统自动生成,下载前可以参看下载内容)
下载文件列表
my_scpserver.tar