diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-18 17:37:44 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-18 17:37:44 -0700 |
| commit | bc61357a44cf4906dda2b30c4474ae891982e620 (patch) | |
| tree | 284d70f7c20b1d057f3d52c9f437b6d9312b7a37 /controller/JSONDB.hpp | |
| parent | f6d92eb737507e6c56cf59aa7b4c4fce679e23cd (diff) | |
| download | infinitytier-bc61357a44cf4906dda2b30c4474ae891982e620.tar.gz infinitytier-bc61357a44cf4906dda2b30c4474ae891982e620.zip | |
HTTP backend support for JSONDB
Diffstat (limited to 'controller/JSONDB.hpp')
| -rw-r--r-- | controller/JSONDB.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/controller/JSONDB.hpp b/controller/JSONDB.hpp index 00eeb8d8..c19112ed 100644 --- a/controller/JSONDB.hpp +++ b/controller/JSONDB.hpp @@ -31,22 +31,21 @@ #include "../node/Constants.hpp" #include "../node/Utils.hpp" +#include "../node/InetAddress.hpp" +#include "../node/Mutex.hpp" #include "../ext/json/json.hpp" #include "../osdep/OSUtils.hpp" +#include "../osdep/Http.hpp" namespace ZeroTier { /** - * Hierarchical JSON store that persists into the filesystem + * Hierarchical JSON store that persists into the filesystem or via HTTP */ class JSONDB { public: - JSONDB(const std::string &basePath) : - _basePath(basePath) - { - _reload(_basePath,std::string()); - } + JSONDB(const std::string &basePath); inline void reload() { @@ -106,6 +105,7 @@ private: inline bool operator!=(const _E &e) const { return (obj != e.obj); } }; + InetAddress _httpAddr; std::string _basePath; std::map<std::string,_E> _db; }; |
