# gosync **Repository Path**: forrest/gosync ## Basic Information - **Project Name**: gosync - **Description**: gosync - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-04-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #gosync-通用文件传输组件 ##主程序帮助 ./gosync -h NAME: gosync - 通用文件传输 USAGE: gosync [global options] command [command options] [arguments...] VERSION: 0.1.0.0 Beta AUTHOR: Forrest Sun - COMMANDS: client 基于TCP/IP协议的文件传输客户端 server 基于TCP/IP协议的文件传输服务器端 help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --help, -h show help --version, -v print the version ------------------------------------------------ ##服务器端命令帮助 ./gosync server -h NAME: server - 基于TCP/IP协议的文件传输服务器端 USAGE: command server [command options] [arguments...] DESCRIPTION: 通用传输组件。完成基于TCP/IP协议的文件传输工作。 OPTIONS: --port "8000" server listen port --dir "/tmp/gosync/" recive sync fold ------------------------------------------------ ##客户端命令帮助 ./gosync client -h NAME: client - 基于TCP/IP协议的文件传输客户端 USAGE: command client [command options] [arguments...] DESCRIPTION: 通用传输组件。完成基于TCP/IP协议的文件传输工作。 OPTIONS: --host "127.0.0.1" server host --port "8000" server listen port --file transfer file #服务器端开启 ./gosync -d -dir /tmp/xxxx #客户端传输文件: ./gosync --file=/root/Videos/DSCF2394.avi --host=127.0.0.1 --port=7722 /tmp/xxxx/DSCF2394.avi sync success #手动检查文件正确性: md5sum /tmp/xxxx/DSCF2394.avi eb50332d3b3b6f36b773046aca16e908 /tmp/xxxx/DSCF2394.avi md5sum /root/Videos/DSCF2394.avi eb50332d3b3b6f36b773046aca16e908 /root/Videos/DSCF2394.avi