30 Aug
2008
30 Aug
'08
12:01 a.m.
lakers fan wrote:
Hello, I have a udp listener socket, I want that to run in a separate thread. Just listen for incoming messages and pass the message to message handler. I checked the tutorial, it shows
boost::asio::io_service io_service; udp_server server(io_service); io_service.run();
I see the run() method running in a loop. Then how do I stop the service from some other thread?.
Any help would be greatly appreciated.
Arrange for a way for another thread can call top() on the first thread's io_service object. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org