From b53556599fb915304af6e22e2f83d48dbd91ba5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 31 Jul 2018 13:00:40 +0200 Subject: [PATCH] Identities should be at node level. --- include/neocomm/channel.hpp | 1 - include/neocomm/node.hpp | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/neocomm/channel.hpp b/include/neocomm/channel.hpp index f5346f9..793698b 100644 --- a/include/neocomm/channel.hpp +++ b/include/neocomm/channel.hpp @@ -40,7 +40,6 @@ public: ~channel(); // TODO private: const std::string chan_id; - std::vector identities; // users currently known to be in the channel std::vector msgs; // messages to and from the channel }; diff --git a/include/neocomm/node.hpp b/include/neocomm/node.hpp index 9535f5b..d23d3d6 100644 --- a/include/neocomm/node.hpp +++ b/include/neocomm/node.hpp @@ -18,6 +18,7 @@ #pragma once +#include "identity.hpp" #include "channel.hpp" #include @@ -95,8 +96,11 @@ public: void leave_channel(const std::string &chan_id); // TODO private: - std::vector channels; - dht::DhtRunner dht_node; + unsigned int pm_timeout; // timeout for private message reception confirmation + unsigned int chan_timeout; // timeout for channel presence message + std::vector channels; // channels connected to via the node + std::vector identities; // known users on the network + dht::DhtRunner dht_node; // the actual OpenDHT node }; }