aboutsummaryrefslogtreecommitdiffstats
path: root/http_server.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-04-15 22:08:23 +0900
committeripknHama <ipknhama@gmail.com>2014-04-15 22:08:23 +0900
commit5692ec1cbf0957c526d6c7911c88e35145518839 (patch)
tree0450cd8b355ae655559cc8beb3323e5b1920f2fd /http_server.h
parentdc5033203302a6b825b681ab2b07604e9c59bd5b (diff)
downloadcrow-5692ec1cbf0957c526d6c7911c88e35145518839.tar.gz
crow-5692ec1cbf0957c526d6c7911c88e35145518839.zip
multi server test
Diffstat (limited to 'http_server.h')
-rw-r--r--http_server.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/http_server.h b/http_server.h
index 002eec6..64dff94 100644
--- a/http_server.h
+++ b/http_server.h
@@ -27,6 +27,11 @@ namespace flask
auto _ = std::async(std::launch::async, [this]{io_service_.run();});
}
+ void stop()
+ {
+ io_service_.stop();
+ }
+
private:
void do_accept()
{