diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-15 22:08:23 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-15 22:08:23 +0900 |
commit | 5692ec1cbf0957c526d6c7911c88e35145518839 (patch) | |
tree | 0450cd8b355ae655559cc8beb3323e5b1920f2fd /http_server.h | |
parent | dc5033203302a6b825b681ab2b07604e9c59bd5b (diff) | |
download | crow-5692ec1cbf0957c526d6c7911c88e35145518839.tar.gz crow-5692ec1cbf0957c526d6c7911c88e35145518839.zip |
multi server test
Diffstat (limited to 'http_server.h')
-rw-r--r-- | http_server.h | 5 |
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() { |