diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-03-31 17:53:34 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-03-31 17:53:34 -0700 |
commit | 36eab4f1a9905e6bc128221d8e59e9f9489c291f (patch) | |
tree | 31798569c687fa0a22f1423d722e4884012cbb6c /osdep | |
parent | 647ce82b86a56c45f07cd69d5cabedd083179365 (diff) | |
download | infinitytier-36eab4f1a9905e6bc128221d8e59e9f9489c291f.tar.gz infinitytier-36eab4f1a9905e6bc128221d8e59e9f9489c291f.zip |
Whole heap more cleanup and refactoring...
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/SoftwareUpdater.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/osdep/SoftwareUpdater.hpp b/osdep/SoftwareUpdater.hpp index 6c1e573a..3c0181c6 100644 --- a/osdep/SoftwareUpdater.hpp +++ b/osdep/SoftwareUpdater.hpp @@ -38,6 +38,28 @@ #include "Defaults.hpp" #include "Address.hpp" +/** + * Delay between fetches of the root topology update URL + * + * 86400000 = check once every 24 hours (this doesn't change often) + */ +#define ZT_UPDATE_ROOT_TOPOLOGY_CHECK_INTERVAL 86400000 + +/** + * Minimum interval between attempts to do a software update + */ +#define ZT_UPDATE_MIN_INTERVAL 120000 + +/** + * Maximum interval between checks for new versions + */ +#define ZT_UPDATE_MAX_INTERVAL 7200000 + +/** + * Software update HTTP timeout in seconds + */ +#define ZT_UPDATE_HTTP_TIMEOUT 120 + namespace ZeroTier { class RuntimeEnvironment; |