Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peer

A simple P2P CLI demo application

Build

cargo build --release

note: look for build artifacts in the target/release directory

Options

-r, --period    Sets the messaging period [default: 1]
-p, --port      Sets the peer port
-c, --connect   Sets the address of the remote peer
-h, --help      Print help
-V, --version   Print version

Usage

Starting the first peer with messaging period 5 seconds at port 8080

./peer --period=5 --port=8080

Starting the second peer which will connect to the first

./peer --period=6 --port=8081 --connect="127.0.0.1:8080"

Starting the second peer which will connect to all the peers through the first

./peer --period=7 --port=8082 --connect="127.0.0.1:8080"

About

A simple P2P CLI demo application

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages