A simple terminal-based chat application written in Rust using TCP sockets. It includes both a server and a client program for communication.
This project demonstrates a basic implementation of a chat server and client using Rust's std::net and concurrency primitives. The server can handle multiple clients and broadcast messages to all connected clients.
- Multi-client support on the server.
- Concurrent message handling using threads.
- Non-blocking sockets for efficient communication.
- Minimal terminal-based interface.
Follow the instructions below to set up and run the chat application.
- Rust (Ensure Rust and Cargo are installed)
- Basic understanding of terminal commands.
-
Clone the repository:
git clone <repo-url> cd <repo-name>
-
Run the server:
cargo run --bin server
-
Open a new terminal and run the client:
cargo run --bin client
-
Repeat step 3 to connect multiple clients.