From 88c5130eccd06e63ffca732626c0fb59426743a7 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 5 Oct 2016 12:56:52 +0200 Subject: Seperates Nodes and Clients for incoming connections. Created a PrevNode class to reflect the seperation. Made Client movable. Added 2 empty protobuf message that declare what each connecting client is, sent when connected to a node. --- node/nextnode.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'node/nextnode.hpp') diff --git a/node/nextnode.hpp b/node/nextnode.hpp index 9601ab5..862ca5c 100644 --- a/node/nextnode.hpp +++ b/node/nextnode.hpp @@ -15,12 +15,13 @@ * protobuf messages, This because there are seperate functions for each to type to use. * And there seems no way to solve this using templates. */ -#define MESSAGE_SETTER(T,F,NAME) \ -inline void message_setter(cmix_proto::CMixMessage& m, cmix_proto::T##NAME const& v) { \ - *m.mutable_##F##NAME() = v; \ +#define MESSAGE_SETTER(TYPE, NAME) \ +inline void message_setter(cmix_proto::CMixMessage& m, cmix_proto::TYPE const& v) { \ + *m.mutable_##NAME() = v; \ } \ -MESSAGE_SETTER(I,i,nitialization) +MESSAGE_SETTER(Initialization, initialization) +MESSAGE_SETTER(ImANode, imanode) #undef MESSAGE_SETTER -- cgit v1.2.3-70-g09d2