|
Boost Users : |
Subject: Re: [Boost-users] Terminate an io_service properly
From: Igor R (boost.lists_at_[hidden])
Date: 2009-08-06 11:48:29
> Â Â Â Â Â if (message.compare("SHUTDOWN") == 0) { //how to terminate the server through an incoming message ?
> Â Â Â Â Â Â Â acceptor->close();
> Â Â Â Â Â Â Â io_service.stop();
> Â Â Â Â Â }
Why can't you just break the loop?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net