X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fntp.h;h=464b3edced9af33c2131660788f40dca3915ff43;hb=2404891de8ac5b357d0abde90f2e286a3153fdef;hp=496312432ae9b3200d76fb435016eadb3e8ab099;hpb=5a73a5bcab66ec1012ac88b4d61bdc1e0213286c;p=novacoin.git diff --git a/src/ntp.h b/src/ntp.h index 4963124..464b3ed 100644 --- a/src/ntp.h +++ b/src/ntp.h @@ -1,3 +1,21 @@ -int64_t NtpGetTime(); -int64_t NtpGetTime(std::string &strHostName); +// Copyright (c) 2013-2016 The NovaCoin developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or https://opensource.org/licenses/mit-license.php +#ifndef NOVACOIN_NTP_H +#define NOVACOIN_NTP_H +// Get time from random server and return server address. +int64_t NtpGetTime(CNetAddr& ip); + +// Get time from provided server. +int64_t NtpGetTime(const std::string &strHostName); + +extern std::string strTrustedUpstream; + +// NTP time samples thread. +void ThreadNtpSamples(void* parg); + +// NTP offset +int64_t GetNtpOffset(); + +#endif // NOVACOIN_NTP_H