Skip to content

Dao-Ho/chatroom-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple implementation of a chatroom built in C++ because why not?

What it does

  • Uses TCP to ensure your messages reach their destination.

  • Supports multiple simultaneous connections (default is 10).

  • Every message sent is broadcast to all connected participants.

Requirements

  • A C++17 compiler (g++, clang, etc.)
  • CMake

Build it

Standard CMake:

mkdir -p build
cd build
cmake ..
make

Run it

1. Start the Server

./server

2. Join the server from the Client

Open a new terminal. Or five. Default connects to localhost.

./client

Got a friend on the same network? Tell them your IP (or port forward it through if not):

./client <YOUR_IP_ADDRESS>

3. Chat

Type stuff, hit enter.

Screen.Recording.2025-12-10.at.2.11.56.AM.mov

About

simple chatroom in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published