Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 862 Bytes

File metadata and controls

54 lines (33 loc) · 862 Bytes

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