asio: Add stop() to listen_and_serve doc

This commit is contained in:
Tatsuhiro Tsujikawa 2018-11-18 17:30:35 +09:00
parent a433b132fc
commit f51e696e4a
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ public:
// incoming requests in cleartext TCP connection. If |asynchronous| // incoming requests in cleartext TCP connection. If |asynchronous|
// is false, this function blocks forever unless there is an error. // is false, this function blocks forever unless there is an error.
// If it is true, after server has started, this function returns // If it is true, after server has started, this function returns
// immediately, and the caller should call join() to shutdown server // immediately, and the caller should call stop() and join() to
// gracefully. // shutdown server gracefully.
boost::system::error_code listen_and_serve(boost::system::error_code &ec, boost::system::error_code listen_and_serve(boost::system::error_code &ec,
const std::string &address, const std::string &address,
const std::string &port, const std::string &port,