A socket-based chat application implemented in C++ using a client–server architecture. Connect multiple clients to a server and exchange messages in real time.
ChatApp‑Socket‑Programming is a practical C++ project showcasing a simple but effective chat system. The server handles multiple client connections, while clients can send and receive messages through sockets. This project demonstrates fundamental socket programming, concurrency via multithreading, and client-server communication.
- Multi-client chat capability
- Server implemented using C++ sockets and
select()or threading - Simple command-line interface for both server and client
- Makefile included for easy compilation
- C++ Compiler (e.g.,
g++) - Make utility
- Clone the repository:
git clone https://github.com/numanarif0/ChatApp-Socket-Programming.git
- Navigate to project directory:
cd ChatApp-Socket-Programming - Build with Make:
make
- Start the server (default port, e.g., 12345):
./server
- In separate terminal windows, start clients:
./client
- Chat away! Messages from one client will be broadcast to all connected clients.