Search code examples
c++boost-asioblocking

How to make boost::asio::ip::tcp::acceptor block forever?


How would someone do that? It just blocks until the first connection attempt.


Solution

  • the boost::asio::ip::tcp::acceptor::accept method already blocks until a connection is attempted.