20 #ifndef PSYNC_PARTIAL_PRODUCER_HPP 21 #define PSYNC_PARTIAL_PRODUCER_HPP 28 #include <ndn-cxx/face.hpp> 29 #include <ndn-cxx/security/key-chain.hpp> 30 #include <ndn-cxx/util/scheduler.hpp> 31 #include <ndn-cxx/util/time.hpp> 71 const ndn::Name& syncPrefix,
72 const ndn::Name& userPrefix,
73 ndn::time::milliseconds helloReplyFreshness = HELLO_REPLY_FRESHNESS,
89 publishName(
const ndn::Name& prefix, ndn::optional<uint64_t> seq = ndn::nullopt);
98 satisfyPendingSyncInterests(
const ndn::Name& prefix);
110 onHelloInterest(
const ndn::Name& prefix,
const ndn::Interest& interest);
122 onSyncInterest(
const ndn::Name& prefix,
const ndn::Interest& interest);
125 std::map<ndn::Name, PendingEntryInfo> m_pendingEntries;
126 ndn::ScopedRegisteredPrefixHandle m_registeredPrefix;
127 ndn::time::milliseconds m_helloReplyFreshness;
132 #endif // PSYNC_PARTIAL_PRODUCER_HPP
const ndn::time::milliseconds HELLO_REPLY_FRESHNESS
const ndn::time::milliseconds SYNC_REPLY_FRESHNESS
Partial sync logic to publish data names.
Invertible Bloom Lookup Table (Invertible Bloom Filter)
ndn::scheduler::ScopedEventId expirationEvent
#define PSYNC_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Base class for PartialProducer and FullProducer.