skoupidi bc22307e8b rcp/server: generalize RequestHandler so we can create multiple instances of it 1 年之前
..
src bc22307e8b rcp/server: generalize RequestHandler so we can create multiple instances of it 1 年之前
Cargo.toml 7a3b554e0d chore: Use published darkfi-serial crate where applicable 1 年之前
README.md f8dc600fd9 dchat: renamed dchat to dchatd and add placeholder dchat-cli 2 年之前
dchatd_config.toml 74f91dd3bc dchat: fix mistakes on default config 2 年之前

README.md

Dchat

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

Step 1: Spin a seed node

cd darkfi
make BINS=lilith
./lilith

You should see the following output:

Config file created in '"/home/USER/.config/darkfi/lilith_config.toml"'. Please review it and try again.

Add dchat to the config as follows, keeping in mind that the port number must match the seed specified in Alice and Bob's settings (see: main.rs).

[network."dchat"]
port = 50515
localnet = true

Now run lilith:

./lilith

Step 2: Using dchat

make BINS="dchat"

Run dchat as an inbound node:

./dchat a

Run dchat as an outbound node:

./dchat 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