Crates.io | grapevine |
lib.rs | grapevine |
version | 0.1.3 |
source | src |
created_at | 2023-01-17 03:17:56.131219 |
updated_at | 2023-01-25 02:36:06.432893 |
description | A simple peer-to-peer gossip protocol handler |
homepage | |
repository | https://github.com/kobby-pentangeli/grapevine |
max_upload_size | |
id | 760788 |
size | 63,080 |
A simple peer-to-peer gossip protocol handler
Using Cargo, pass the necessary command-line args after --
, like the following:
cargo run -- --duration 5 --port 8000 --peer 127.0.0.1:8000
$ cargo run -- --help
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/grapevine -h`
grapevine v0.1.0
Kobby Pentangeli <kobbypentangeli@gmail.com>
A simple peer-to-peer gossip protocol handler
Usage: main [OPTIONS] --port <PORT> --duration <DURATION>
Options:
-p, --port <PORT> Sets the port to listen to.
Example: --port 8000
-d, --duration <DURATION> Sets the duration (in seconds) of emitting messages to other peers.
Example: --duration 5
--peer <PEER> Sets the optional peer address to connect to.
Example: --peer 127.0.0.1:8000
-h, --help Print help
-V, --version Print version