Boost logo

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