https://github.com/ahmed-ibrahim-30/cpp-socket-chat
A simple C++ socket-based console application where the server receives messages from multiple clients, displays them on the server console, and responds individually to each client.
https://github.com/ahmed-ibrahim-30/cpp-socket-chat
client-server cpp socket socket-programming winsock2
Last synced: about 2 months ago
JSON representation
A simple C++ socket-based console application where the server receives messages from multiple clients, displays them on the server console, and responds individually to each client.
- Host: GitHub
- URL: https://github.com/ahmed-ibrahim-30/cpp-socket-chat
- Owner: Ahmed-Ibrahim-30
- Created: 2025-08-03T13:17:51.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-08-03T13:20:39.000Z (2 months ago)
- Last Synced: 2025-08-03T15:09:47.644Z (2 months ago)
- Topics: client-server, cpp, socket, socket-programming, winsock2
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple WinSock Chat (Client-Server C++ App)
This is a simple TCP Client-Server messaging application built in C++ using Windows Socket API (WinSock). The server accepts multiple client connections, receives a message from each, prints it, and replies with a predefined message.
---
## 📦 Features
- Built using C++ and WinSock API
- Console-based chat
- Server handles multiple clients using threads
- CMake-based build system
- Uses blocking TCP sockets---
## 🚀 Getting Started
### 📋 Prerequisites
- Windows OS
- CMake >= 3.26
- C++20 compatible compiler (MinGW recommended)
- CLion / Visual Studio / or terminal with CMake---
### 🛠️ Build Instructions
1. Clone the repo:
```bash
git clone https://github.com/your-username/Simple-WinSock-Chat.git
cd Simple-WinSock-Chat