
24 May
2008
24 May
'08
9:23 a.m.
My question is how do I keep the thread's io_service.run() from returning right away, since there will be no work for the io_service.run() to do until the server lines up a new connection for the thread to handle?
Use asio::io_service::work class: http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/reference/io_servic... Look at the following example for details: http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/example/http/server...