Is there any c++ tcp server on linux?
Question
I want to develop one no-blocking tcp server with c++, is there any open source project like Twisted ?
Solution
Boost.Asio is discussed quite frequently in the boost-asio tag on SO. Copying from the tag wiki that I wrote:
Most programs interact with the outside world in some way, whether it be via a file, a network, a serial cable, or the console. Sometimes, as is the case with networking, individual I/O operations can take a long time to complete. This poses particular challenges to application development. The Boost.Asio library is intended for programmers using C++ for systems programming, where access to operating system functionality such as networking is often require
OTHER TIPS
Have a look at ZeroMQ which has several interfaces, including C++.
It does more that just a socket tcp server, but that is part of the appeal. It is licensed under the very liberal LGPL with optional commercial support.
Take a look at the ACE Toolkit. Especially the Reactor and event demultiplexing and event handler dispatching support. The license is very easy and is similar to the BSD License