More LFDB work
This commit is contained in:
parent
5f11daadf2
commit
ac2688de58
2 changed files with 100 additions and 231 deletions
|
@ -66,8 +66,7 @@ protected:
|
|||
EmbeddedNetworkController *const _nc;
|
||||
const Identity _myId;
|
||||
|
||||
std::string _lfOwnerPrivate;
|
||||
std::string _lfOwnerPublic;
|
||||
std::string _lfOwnerPrivate,_lfOwnerPublic;
|
||||
std::string _lfNodeHost;
|
||||
int _lfNodePort;
|
||||
|
||||
|
@ -76,12 +75,10 @@ protected:
|
|||
_MemberState() :
|
||||
lastOnlineAddress(),
|
||||
lastOnlineTime(0),
|
||||
recordTimestamp(0),
|
||||
dirty(false),
|
||||
lastOnlineDirty(false) {}
|
||||
InetAddress lastOnlineAddress;
|
||||
int64_t lastOnlineTime;
|
||||
int64_t recordTimestamp;
|
||||
bool dirty;
|
||||
bool lastOnlineDirty;
|
||||
};
|
||||
|
@ -89,10 +86,8 @@ protected:
|
|||
{
|
||||
_NetworkState() :
|
||||
members(),
|
||||
recordTimestamp(0),
|
||||
dirty(false) {}
|
||||
std::unordered_map<uint64_t,_MemberState> members;
|
||||
int64_t recordTimestamp;
|
||||
bool dirty;
|
||||
};
|
||||
std::unordered_map<uint64_t,_NetworkState> _state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue