A peer-to-peer TCP chat application written in Rust.
- Direct — True peer-to-peer communication without a central server.
- Bi-directional — Each peer can both send and receive messages.
To start a chat room and connect to it:
# Terminal 1 - User 1 hosts a chat room on port 8080
cargo run create 127.0.0.1 8080
# Terminal 2 - User 2 connects to User 1's chat room
cargo run connect 127.0.0.1 8080Once connected, type messages in either terminal to communicate:
> Hello from peer 1!
< Hello from peer 2!
> How are you?
< Doing great, thanks!