
24 May
2008
24 May
'08
4:41 p.m.
Igor, Thanks a lot. I figured they must be a way to do it; that work class slipped by me unnoticed on the reference page. It seems like they thought of everything. thanks
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... jose "survival first, then happiness as we can manage it"