Track online status in FileDB

This commit is contained in:
Adam Ierymenko 2019-07-15 15:27:53 -05:00
parent d3728d5859
commit bdc2ec1f5e
3 changed files with 87 additions and 22 deletions

View file

@ -48,6 +48,11 @@ public:
protected:
std::string _networksPath;
std::string _tracePath;
std::thread _onlineUpdateThread;
std::map< uint64_t,std::map<uint64_t,std::map<int64_t,InetAddress> > > _online;
std::mutex _online_l;
bool _onlineChanged;
bool _running;
};
} // namespace ZeroTier