2

I want to develop one no-blocking tcp server with c++, is there any open source project like Twisted ?

why
  • 23,923
  • 29
  • 97
  • 142

3 Answers3

4

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

Community
  • 1
  • 1
Sam Miller
  • 23,808
  • 4
  • 67
  • 87
1

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.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725
1

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

bdk
  • 4,769
  • 29
  • 33