asio: Add stop() to listen_and_serve doc
This commit is contained in:
parent
a433b132fc
commit
f51e696e4a
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue