aboutsummaryrefslogtreecommitdiff
path: root/node/node.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 /node/node.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 'node/node.hpp')
-rw-r--r--node/node.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/node/node.hpp b/node/node.hpp
index 868c4b8..9423860 100644
--- a/node/node.hpp
+++ b/node/node.hpp
@@ -1,7 +1,9 @@
#pragma once
#include "server.hpp"
-#include "protobufclient.hpp"
+#include "receiver.hpp"
+#include "senderreceiver.hpp"
+#include "sender.hpp"
#include "api.h"
@@ -61,7 +63,7 @@ class Node
void handle_imanode(std::list<Receiver>::iterator handle);
void handle_imaclient(std::list<Receiver>::iterator handle, cmix_proto::ImAClient c);
- void handle_message(std::list<ProtobufClient<Receive>>::iterator handle, cmix_proto::CMixMessage message);
+ void handle_message(std::list<Receiver>::iterator handle, cmix_proto::CMixMessage message);
public:
/*!