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> 57 afterFetcherSignalEmitted(
const ndn::Data& lsaSegment);
66 deleteOldLsas(
const ndn::Name& newLsaName);
71 scheduleLsaSegmentDeletion(
const ndn::Name& segmentKey, ndn::time::seconds expirationTime);
75 ndn::Scheduler& m_scheduler;
80 std::unordered_map<ndn::Name, ndn::Data> m_lsaSegments;
85 #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.
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.
LsaSegmentStorage(ndn::Scheduler &scheduler)