example server/client code in C++ (not C)

I’m trying to find a server/client implementation in C++ on the web.

I found dozens of implementations written in C (not C++) – just like this one.

How about something in c++?

Is boost::asio the only alternative to pure C – or am I missing some libraries?


You will find plenty of C++ examples in Qt’s documentation of the QtNetwork module. They even have a specialized class to act as a TCP server, which is aptly named QTcpServer.

You will also find more complete examples there :