Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.01 KB

File metadata and controls

42 lines (30 loc) · 1.01 KB

talky

A peer-to-peer TCP chat application written in Rust.

Implementation

  • Direct — True peer-to-peer communication without a central server.
  • Bi-directional — Each peer can both send and receive messages.

Usage

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 8080

Sending Messages

Once connected, type messages in either terminal to communicate:

> Hello from peer 1!
< Hello from peer 2!
> How are you?
< Doing great, thanks!

License

Licensed under Apache License, Version 2.0 or MIT License at your discretion.

Contribution

Contributions to this crate will be dual-licensed under Apache-2.0 and MIT by default, unless specifically indicated otherwise.