diff options
Diffstat (limited to 'libcmix-network')
| -rw-r--r-- | libcmix-network/acceptor.hpp | 3 | ||||
| -rw-r--r-- | libcmix-network/server.hpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcmix-network/acceptor.hpp b/libcmix-network/acceptor.hpp index 0ee9294..eecc511 100644 --- a/libcmix-network/acceptor.hpp +++ b/libcmix-network/acceptor.hpp @@ -74,6 +74,9 @@ public: */ void start_accepting(std::shared_ptr<boost::asio::ssl::context> ctx, SSLAcceptHandler accept_handler); + /*! + * \brief closes the acceptor socket and cancels the async_operations. + */ void close(); }; diff --git a/libcmix-network/server.hpp b/libcmix-network/server.hpp index 6976f04..29559e7 100644 --- a/libcmix-network/server.hpp +++ b/libcmix-network/server.hpp @@ -53,6 +53,9 @@ public: */ Server(boost::asio::io_service& io_service, ListenSettings const& listen_settings, std::shared_ptr<boost::asio::ssl::context> ctx, SSLAcceptHandler accept_handler); + /*! + * \brief close closes all the accepting sockets. + */ void close(); }; |
