It's a test task
It is semi-centralized p2p crate. Base protocol is TCP, and uses its implementation from Standard Linrary of Rust Language. Also it uses extern crate CLAP for CLI options and flags.
For using this programme you should download firstly:
$ git clone https://github.com/MrZloHex/iroha_p2p.git
$ cd iroha_p2p
$ cargo build --release
Executable file is on path iroha_p2p/target/release/iroha_p2p*
For dry-run try:
$ ./iroha_p2p --port=8080
Output should be this:
$ ./iroha_p2p --port=8080
My address is '127.0.0.1:8080'
If output isn't the same, try add issue on GitHub
- -h, --help:
Help inforamation - -V, --version:
Version of this crate
- -l, --list:
Set path and name to file with peers of one group - -p, --period:
Set frequency of speaking in seconds - -P, --port:
Set port of Peer
If there are more questions try run:
$ ./iroha_p2p --help