22 #ifndef NLSR_LSA_SEGMENT_STORAGE_HPP 23 #define NLSR_LSA_SEGMENT_STORAGE_HPP 27 #include <ndn-cxx/util/segment-fetcher.hpp> 28 #include <ndn-cxx/util/signal.hpp> 29 #include <ndn-cxx/util/time.hpp> 40 const ndn::time::seconds lsaDeletionTimepoint);
58 afterFetcherSignalEmitted(
const ndn::Data& lsaSegment);
67 deleteOldLsas(
const ndn::Name& newLsaName);
72 scheduleLsaSegmentDeletion(
const ndn::Name& segmentKey);
76 ndn::Scheduler& m_scheduler;
81 std::unordered_map<ndn::Name, ndn::Data> m_lsaSegments;
83 const ndn::time::seconds m_lsaDeletionTimepoint;
88 #endif // NLSR_LSA_SEGMENT_STORAGE_HPP
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
void connectToFetcher(ndn::util::SegmentFetcher &fetcher)
Get connected to the signal emitted by SegmentFetcher.
LsaSegmentStorage(ndn::Scheduler &scheduler, const ndn::time::seconds lsaDeletionTimepoint)
const ndn::Data * getLsaSegment(const ndn::Interest &interest)
Returns an LSA segment for an interest from LsaSegmentStorage.
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California, Arizona Board of Regents.