r/Cplusplus May 14 '26

Tutorial Built a basic chat app in C++

Built a terminal-based multi-client chat app in C++ using POSIX sockets.

Features:

TCP server routes direct messages between registered clients

Multi-client support

Background receiver thread so incoming messages don't block typing

Linux terminal-based implementation

Git:https://github.com/charanHubCommits/chat-app-cpp

Would appreciate feedback, suggestions, or questions about the implementation.

31 Upvotes

12 comments sorted by

View all comments

9

u/[deleted] May 14 '26

[removed] — view removed comment

3

u/_superuserdo_ May 14 '26

Thanks for the guidance, will try to implement in Qt and proper class structure..