lunar-mining 22151f6b7a book/dchat: use anchors where possible, copy paste code where not. пре 3 година
..
src 22151f6b7a book/dchat: use anchors where possible, copy paste code where not. пре 3 година
Cargo.toml 22151f6b7a book/dchat: use anchors where possible, copy paste code where not. пре 3 година
README.md c9f6121d11 dchat: added README пре 4 година
dchat_config.toml 6134dcdad7 p2pnet: inbound and external addresses vectorized пре 4 година

README.md

Dchat

A demo chat program to document DarkFi net code. Tutorial can be found in the DarkFi book.

Usage

Spin up a seed node:

cd example/dchat-seed
cargo run

Run dchat as an inbound node:

cargo run a

Run dchat as an outbound node:

cargo run b

Logging

Dchat creates a logging file for the inbound node at /tmp/alice.log. Logging for the outbound node is found at /tmp/bob.log.

Tail them like so:

tail -f /tmp/alice.log

Or use multitail for colored output:

multitail -c /tmp/alice.log