An open API service indexing awesome lists of open source software.

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.

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