A simple CLI-based chat application built in Rust, featuring a server that handles multiple client connections and clients that can send and receive messages.
src/
├── server_main.rs # Entry point for the server
├── server.rs # Core server logic
├── client_main.rs # Entry point for the client
├── client.rs # Core client logic
- Server: Handles multiple client connections and broadcasts messages to all connected clients.
- Client: Connects to the server, sends messages, and receives messages in real-time.
Run the server using the following command:
cargo run --bin cli_chat_server
In a new terminal window, start a client using:
cargo run --bin cli_chat_client
Repeat the client command in multiple terminal windows to connect more clients to the server.
- Send a message: Type your message and press Enter to send it to all connected clients.
- Quit: Type
/quit
to disconnect from the server.
- Rust (latest stable version)
- Cargo (Rust package manager)
This project is licensed under the MIT License.