Skip to content

cxnkk/talky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages