20 #ifndef PSYNC_COMMON_HPP
21 #define PSYNC_COMMON_HPP
23 #include "PSync/detail/config.hpp"
25 #include <ndn-cxx/name.hpp>
26 #include <ndn-cxx/util/time.hpp>
36 using namespace ndn::time_literals;
50 #ifdef PSYNC_HAVE_ZLIB
60 using std::runtime_error::runtime_error;
71 using UpdateCallback = std::function<void(
const std::vector<MissingDataInfo>&)>;
constexpr ndn::time::milliseconds HELLO_REPLY_FRESHNESS
constexpr ndn::time::milliseconds SYNC_INTEREST_LIFETIME
constexpr ndn::time::milliseconds HELLO_INTEREST_LIFETIME
constexpr ndn::time::milliseconds SYNC_REPLY_FRESHNESS
std::function< void(const std::vector< MissingDataInfo > &)> UpdateCallback