Skip to content

raj17ce/Chat-Terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Terminal

A terminal-based LAN chat application written in C++ using raw POSIX sockets. Run a server, connect multiple clients, and chat in real time.

How it works

The server listens on a port you choose and accepts multiple clients concurrently using a thread pool (8 threads). Each client picks a username on connect. Every message is broadcast to all other connected clients.

Build

Requires CMake 3.16+ and a C++17 compiler.

cmake -S . -B build
cmake --build build

Run

Start the server first:

./build/Server/Server
# Enter port: 17000

Then connect clients (on the same machine or LAN):

./build/Client/Client
# Enter IP: 127.0.0.1
# Enter port: 17000
# Enter chat name: Alice

Type /quit to disconnect a client.

About

A Simple Console based Group Chat Application made using C++ and WinSocket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors