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.
 
Thanks,
Bharani
 


Talk to your Yahoo! Friends via Windows Live Messenger. Find Out How