This project implements a simple client-server-based chat application that facilitates communication between multiple clients. The server acts as a central hub, relaying messages between connected clients. Multithreading has been used to facilitate parallel communication, ensuring efficient handling of multiple clients simultaneously.
- Real-time communication between clients
- Lightweight and efficient
- Easy to set up and run
- Supports parallel communication using multithreading
Make sure you have the following installed:
- g++ (GNU C++ Compiler)
- A terminal/command prompt to execute the commands
- Compile the server code using the following command:
g++ server.cpp -o s
- Run the server with a specified port number (e.g., 5000):
./s 5000
- Compile the client code using the following command:
g++ client.cpp -o c
- Run the client with the server's IP address (e.g.,
0.0.0.0) and the port number:./c 0.0.0.0 5000
Repeat the steps for setting up the client on multiple terminals to connect more clients to the server.


