NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::fw::asf::FaceInfo Class Reference

Strategy information for each face in a namespace. More...

#include <asf-measurements.hpp>

Public Member Functions

 FaceInfo (shared_ptr< const ndn::util::RttEstimator::Options > opts)
 
bool isTimeoutScheduled () const
 
time::nanoseconds scheduleTimeout (const Name &interestName, scheduler::EventCallback cb)
 
void cancelTimeout (const Name &prefix)
 
void recordRtt (time::nanoseconds rtt)
 
void recordTimeout (const Name &interestName)
 
bool hasTimeout () const
 
time::nanoseconds getLastRtt () const
 
time::nanoseconds getSrtt () const
 
size_t getNTimeouts () const
 
void setNTimeouts (size_t nTimeouts)
 

Static Public Attributes

static const time::nanoseconds RTT_NO_MEASUREMENT {-1}
 
static const time::nanoseconds RTT_TIMEOUT {-2}
 

Friends

class NamespaceInfo
 

Detailed Description

Strategy information for each face in a namespace.

Definition at line 40 of file asf-measurements.hpp.

Constructor & Destructor Documentation

◆ FaceInfo()

nfd::fw::asf::FaceInfo::FaceInfo ( shared_ptr< const ndn::util::RttEstimator::Options opts)
inlineexplicit

Definition at line 44 of file asf-measurements.hpp.

Member Function Documentation

◆ isTimeoutScheduled()

bool nfd::fw::asf::FaceInfo::isTimeoutScheduled ( ) const
inline

Definition at line 50 of file asf-measurements.hpp.

References cancelTimeout(), and scheduleTimeout().

Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack().

◆ scheduleTimeout()

◆ cancelTimeout()

void nfd::fw::asf::FaceInfo::cancelTimeout ( const Name prefix)

◆ recordRtt()

void nfd::fw::asf::FaceInfo::recordRtt ( time::nanoseconds  rtt)
inline

◆ recordTimeout()

void nfd::fw::asf::FaceInfo::recordTimeout ( const Name interestName)
inline

Definition at line 69 of file asf-measurements.hpp.

References cancelTimeout(), and RTT_TIMEOUT.

◆ hasTimeout()

bool nfd::fw::asf::FaceInfo::hasTimeout ( ) const
inline

Definition at line 76 of file asf-measurements.hpp.

References getLastRtt(), and RTT_TIMEOUT.

Referenced by nfd::fw::asf::ProbingModule::getProbingInterval().

◆ getLastRtt()

◆ getSrtt()

◆ getNTimeouts()

size_t nfd::fw::asf::FaceInfo::getNTimeouts ( ) const
inline

Definition at line 94 of file asf-measurements.hpp.

Referenced by nfd::fw::asf::FaceStatsCompare::operator()().

◆ setNTimeouts()

void nfd::fw::asf::FaceInfo::setNTimeouts ( size_t  nTimeouts)
inline

Definition at line 100 of file asf-measurements.hpp.

Friends And Related Function Documentation

◆ NamespaceInfo

friend class NamespaceInfo
friend

Definition at line 117 of file asf-measurements.hpp.

Member Data Documentation

◆ RTT_NO_MEASUREMENT

const time::nanoseconds nfd::fw::asf::FaceInfo::RTT_NO_MEASUREMENT {-1}
static

◆ RTT_TIMEOUT

const time::nanoseconds nfd::fw::asf::FaceInfo::RTT_TIMEOUT {-2}
static

The documentation for this class was generated from the following files: