Skip to content

Auric115/tcp-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Rust Chat App

A simple terminal-based chat application written in Rust using TCP sockets. It includes both a server and a client program for communication.

Description

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.

Documentation


Features

  • Multi-client support on the server.
  • Concurrent message handling using threads.
    • Non-blocking sockets for efficient communication.
  • Minimal terminal-based interface.

How to Run

Follow the instructions below to set up and run the chat application.

Requirements

  • Rust (Ensure Rust and Cargo are installed)
  • Basic understanding of terminal commands.

Instructions

  1. Clone the repository:

    git clone <repo-url>
    cd <repo-name>
  2. Run the server:

    cargo run --bin server
  3. Open a new terminal and run the client:

    cargo run --bin client
  4. Repeat step 3 to connect multiple clients.

About

A simple terminal-based chat application written in Rust using TCP sockets. It includes both a server and a client program for communication.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors