Skip to content

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.

Notifications You must be signed in to change notification settings

Ahmed-Ibrahim-30/CPP-SOCKET-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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:
git clone https://github.com/your-username/Simple-WinSock-Chat.git
cd Simple-WinSock-Chat

About

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.

Topics

Resources

Stars

Watchers

Forks