aboutsummaryrefslogtreecommitdiff
path: root/libcmix-network/client.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-10-13 14:35:32 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-10-13 14:35:32 +0200
commit366bae00016bfbfdd354ab010555c2927505b2b2 (patch)
treee329c2ff179f62f093c6c53f84fb8faf4f5fccce /libcmix-network/client.hpp
parentd9587cfd27aa5ef26170ec1983b47f1e26dc8136 (diff)
downloadcmix-366bae00016bfbfdd354ab010555c2927505b2b2.tar.gz
cmix-366bae00016bfbfdd354ab010555c2927505b2b2.tar.bz2
cmix-366bae00016bfbfdd354ab010555c2927505b2b2.zip
Second big network rewrite.
This time without the ugly SFINAE hack to restrict sending and receiving on Senders and Receivers respectively. Replaced this hack with private inheritance and using declerations. Also renamed receive to async_receive to better reflect the behaviour.
Diffstat (limited to 'libcmix-network/client.hpp')
-rw-r--r--libcmix-network/client.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcmix-network/client.hpp b/libcmix-network/client.hpp
index 7b88282..4990667 100644
--- a/libcmix-network/client.hpp
+++ b/libcmix-network/client.hpp
@@ -102,10 +102,10 @@ public:
}
/*!
- * \brief receive
+ * \brief async_receive
* \param message_handler The function to call when a message has been received.
*/
- void receive(MessageHandler message_handler) {
+ void async_receive(MessageHandler message_handler) {
using namespace boost::asio::placeholders;
socket.async_receive(