aboutsummaryrefslogtreecommitdiff
path: root/libcmix-network
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-28 15:48:59 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-28 15:48:59 +0100
commita4a912873058e50060561c21e965b4fec1d9b08b (patch)
tree564432cf3f760483a9acfa64f109f5f42be469c1 /libcmix-network
parentb8d2fe28870d1f54aad1fd9fce04e57caa85ba0b (diff)
downloadcmix-a4a912873058e50060561c21e965b4fec1d9b08b.tar.gz
cmix-a4a912873058e50060561c21e965b4fec1d9b08b.tar.bz2
cmix-a4a912873058e50060561c21e965b4fec1d9b08b.zip
Cleans up and documents the whole cmix protocol.
Diffstat (limited to 'libcmix-network')
-rw-r--r--libcmix-network/acceptor.hpp3
-rw-r--r--libcmix-network/server.hpp3
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();
};