项目作者: shangsunset

项目描述 :
Peer to peer file sharing
高级语言: Go
项目地址: git://github.com/shangsunset/pshare.git
创建时间: 2017-08-22T04:17:26Z
项目社区:https://github.com/shangsunset/pshare

开源协议:MIT License

下载


pshare

A peer to peer file sharing command line tool.

Installation

  1. go get -u github.com/shangsunset/pshare/cmd/psh

Usage

  1. NAME:
  2. psh - A peer to peer file sharing cli application
  3. USAGE:
  4. psh [global options] command [command options] [arguments...]
  5. VERSION:
  6. 0.0.0
  7. COMMANDS:
  8. share, s share content with peers
  9. recv, r receive content from peer
  10. help, h Shows a list of commands or help for one command
  11. GLOBAL OPTIONS:
  12. --help, -h show help
  13. --version, -v print the version

Broadcast to peers

  1. psh share {filename}
  2. Your service hash to share: {hashA}

Receive from broadcast

  1. psh recv -s {hashA}

Private sharing

  1. psh share -p {filename}
  2. Your service hash to share: {hashA}
  3. Your private instance hash to share: {hashB}

Receive from private sharing

  1. psh recv -s {hashA} -p {hashB}

MIT