From 366bae00016bfbfdd354ab010555c2927505b2b2 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 13 Oct 2016 14:35:32 +0200 Subject: 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. --- node/node.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'node/node.hpp') 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::iterator handle); void handle_imaclient(std::list::iterator handle, cmix_proto::ImAClient c); - void handle_message(std::list>::iterator handle, cmix_proto::CMixMessage message); + void handle_message(std::list::iterator handle, cmix_proto::CMixMessage message); public: /*! -- cgit v1.2.3-70-g09d2