9 Sep
2008
9 Sep
'08
7:14 a.m.
for(;;) { g_svc.run(); }
You don't have to call run() in a loop. Instead, you have to give io_service some work *before* you call run() - it will exit when there's no more work to do. Anyway, if for some reason you have to call run() again, you're expected to call reset() prior to run(). Please, refer to the manual: http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/reference/io_servic...