How To Apply This Boost ASIO Example To My Application
问题 I've been reading a lot of ASIO examples, but I'm still sort of confused on how to use them in my application. Basically, my server side needs to accept more than 100 connections (clients), this part is done by using a pool of threads (usually, 2~4 threads for each CPU core). For simplicity, let's just assume there is only one connection. For simplicity, I would also like to copy the example from: http://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/nonblocking/third_party_lib.cpp