Identities should be at node level.
This commit is contained in:
parent
f079d926b7
commit
b53556599f
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user