A simple TCP-based chat server and client written in C++. This project was originally created by Max Base, and later ported to C++ by Kambiz Asadzadeh.
- Single room
- Multi-user chat support
- TCP-based communication
- Simple and lightweight
- Easy to set up and use
- C++22
- CMake 3.10+
- A POSIX-compliant system (Linux/macOS) or Windows with Winsock
git clone https://github.com/BaseMax/TCP-Chat-CPP.git
cd TCP-Chat-CPP
mkdir build && cd build
cmake ..
make
./server <port>
Feel free to use telnet or putty or other clients to test it.
- Start the server on a machine with a specified port.
- Connect one or more clients using a client program.
- Clients can send messages to the server, which broadcasts them to all connected users.
This project is licensed under the MIT License.
- Kambiz Asadzadeh - Ported to C++
- Max Base - Original Developer
Contributions are welcome! Feel free to open an issue or submit a pull request.
For any questions or suggestions, feel free to reach out via GitHub issues.
Copyright 2025, Max Base