C++ Networking: A Chat Server from Sockets Up
Write a multi-user chat server and client in C++ using plain sockets, poll() and a tiny line protocol.
- Intermediate
- 20 lessons · 3h 27m of video
- English
- Updated Oct 2026
The route
Curriculum
5 modules · 20 lessons · 3h 27m of video
-
1
31m
Sockets in five minutes
3 lessons
-
2
42m
One client at a time
4 lessons
-
3
54m
Many clients with poll
5 lessons
-
4
51m
Protocol, rooms and nicknames
5 lessons
-
5
29m
Stress testing
3 lessons
Destination
What you will be able to do
- Open, bind and accept TCP connections
- Serve many clients with poll()
- Design and parse a line-based protocol
- Handle partial reads, disconnects and errors
- Stress-test a server with simulated clients
Before you buy
You will need
- Everyday C++ including classes and vectors
- Linux, macOS or WSL
About this course
The journey
Networking feels like magic until you write the server yourself. In this course you build a chat server that handles dozens of users at once, using nothing but POSIX sockets and poll(), plus a terminal client to talk to it.
You design a small text protocol, handle partial reads and disconnects, add rooms and nicknames, and finish by stress-testing the server with a hundred simulated clients.
How this course is made
This course was created by KOODIJAAM OÜ using AI tools: the lessons, exercises and example code are AI-generated, and the preview video is generated automatically from the course code.
You can watch the preview and read the full lesson list on this page before you buy. If you find a mistake, tell us — we fix it, and the fix reaches everyone who owns the course.
Information desk
Frequently asked questions
Still unsure about something? Write to support@koodijaam.com and a human answers, usually the same working day.
What students say
No reviews yet
Nobody has reviewed this course yet, so there is no score to show. Buy it, work through it, and your review could be the one that helps the next developer decide.
Roblox, Luau, SAS, Microsoft, .NET, Blazor, Avalonia, Neovim, NGINX, OpenResty, LÖVE, PyTorch, NumPy and other product names are trademarks of their respective owners. Koodijaam is an independent course provider and is not affiliated with or endorsed by them.
One-time payment · no expiry