Identities should be at node level.

This commit is contained in:
Nicolás Ortega Froysa 2018-07-31 13:00:40 +02:00
parent f079d926b7
commit b53556599f
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF
2 changed files with 6 additions and 3 deletions

View File

@ -40,7 +40,6 @@ public:
~channel(); // TODO ~channel(); // TODO
private: private:
const std::string chan_id; const std::string chan_id;
std::vector<identity> identities; // users currently known to be in the channel
std::vector<message> msgs; // messages to and from the channel std::vector<message> msgs; // messages to and from the channel
}; };

View File

@ -18,6 +18,7 @@
#pragma once #pragma once
#include "identity.hpp"
#include "channel.hpp" #include "channel.hpp"
#include <vector> #include <vector>
@ -95,8 +96,11 @@ public:
void leave_channel(const std::string &chan_id); // TODO void leave_channel(const std::string &chan_id); // TODO
private: private:
std::vector<channel> channels; unsigned int pm_timeout; // timeout for private message reception confirmation
dht::DhtRunner dht_node; unsigned int chan_timeout; // timeout for channel presence message
std::vector<channel> channels; // channels connected to via the node
std::vector<identity> identities; // known users on the network
dht::DhtRunner dht_node; // the actual OpenDHT node
}; };
} }