Skip to content

saranshtyagi/multithreaded-chat-app-using-sockets-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multithreaded-chat-app-using-sockets-cpp

A terminal-based chat application built in C++ using WinSock2. It features a multithreaded server that handles multiple clients, enabling real-time messaging over TCP. Demonstrates core networking concepts like sockets, client-server communication, and threading.

🗨️ C++ Socket-Based Chat Application (Client-Server)

This project is a simple terminal-based chat application built using C++ and WinSock2 API for Windows. It consists of a multithreaded server that handles multiple clients simultaneously, and a client that can send and receive messages in real-time.


🚀 Features

  • Multi-client support using threads
  • Real-time message broadcasting
  • Graceful disconnection handling
  • Terminal-based chat interface

🛠️ Technologies Used

  • C++
  • WinSock2 API (Windows Sockets)
  • Threads (<thread>)
  • TCP/IP Protocol

📁 File Structure

/chat-app
│
├── client.cpp       # Client-side implementation
├── server.cpp       # Server-side implementation
├── README.md        # Project documentation
├── LICENSE          # (Optional) License file
└── .gitignore       # (Optional) Git ignored files

About

A terminal-based chat application built in C++ using WinSock2. It features a multithreaded server that handles multiple clients, enabling real-time messaging over TCP. Demonstrates core networking concepts like sockets, client-server communication, and threading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages