|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
39 BOOST_ASSERT(!m_timeoutEvent);
40 m_lastInterestName = interestName;
59 auto it = m_fiMap.find(faceId);
60 return it != m_fiMap.end() ? &it->second :
nullptr;
66 auto ret = m_fiMap.emplace(std::piecewise_construct,
67 std::forward_as_tuple(faceId),
68 std::forward_as_tuple(m_rttEstimatorOpts));
69 auto& faceInfo = ret.first->second;
80 [=] { m_fiMap.erase(faceId); });
89 : m_measurements(measurements)
119 BOOST_ASSERT(info !=
nullptr);
131 me ==
nullptr && prefixLen <= interest.
getName().
size(); ++prefixLen) {
136 BOOST_ASSERT(me !=
nullptr);
142 BOOST_ASSERT(info !=
nullptr);
void cancel()
Cancel the operation.
bool isPrefixOf(const Name &other) const
Check if this name is a prefix of another name.
static const time::nanoseconds RTT_NO_MEASUREMENT
size_t size() const
Returns the number of components.
FaceInfo & getOrCreateFaceInfo(const fib::Entry &fibEntry, const Interest &interest, FaceId faceId)
allows Strategy to access portion of Measurements table under its namespace
void extendLifetime(Entry &entry, const time::nanoseconds &lifetime)
extend lifetime of an entry
static constexpr time::microseconds MEASUREMENTS_LIFETIME
Represents an absolute name.
Copyright (c) 2011-2015 Regents of the University of California.
uint64_t FaceId
Identifies a face.
std::function< void()> EventCallback
Function to be invoked when a scheduled event expires.
Scheduler & getScheduler()
Returns the global Scheduler instance for the calling thread.
PartialName getPrefix(ssize_t nComponents) const
Returns a prefix of the name.
time::nanoseconds scheduleTimeout(const Name &interestName, scheduler::EventCallback cb)
NamespaceInfo & getOrCreateNamespaceInfo(const fib::Entry &fibEntry, const Interest &interest)
FaceInfo * getFaceInfo(FaceId faceId)
FaceInfo * getFaceInfo(const fib::Entry &fibEntry, const Interest &interest, FaceId faceId)
NamespaceInfo * getNamespaceInfo(const Name &prefix)
Represents an Interest packet.
Entry * get(const Name &name)
find or insert a Measurements entry for name
Strategy information for each face in a namespace.
Entry * findLongestPrefixMatch(const Name &name, const EntryPredicate &pred=AnyEntry()) const
perform a longest prefix match for name
time::nanoseconds getEstimatedRto() const
Returns the estimated RTO value.
void extendFaceInfoLifetime(FaceInfo &info, FaceId faceId)
std::pair< T *, bool > insertStrategyInfo(A &&... args)
Insert a StrategyInfo item.
Stores strategy information about each face in this namespace.
Represents a Measurements entry.
const Name & getName() const noexcept
static const time::nanoseconds RTT_TIMEOUT
FaceInfo & getOrCreateFaceInfo(FaceId faceId)
AsfMeasurements(MeasurementsAccessor &measurements)
void cancelTimeout(const Name &prefix)
Copyright (c) 2011-2015 Regents of the University of California.
const Name & getPrefix() const