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>

Collaboration diagram for nfd::fw::asf::FaceInfo:

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 getNSilentTimeouts () const
 
void setNSilentTimeouts (size_t nSilentTimeouts)
 

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.

◆ scheduleTimeout()

time::nanoseconds nfd::fw::asf::FaceInfo::scheduleTimeout ( const Name interestName,
scheduler::EventCallback  cb 
)

◆ 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.

◆ getLastRtt()

time::nanoseconds nfd::fw::asf::FaceInfo::getLastRtt ( ) const
inline

◆ getSrtt()

time::nanoseconds nfd::fw::asf::FaceInfo::getSrtt ( ) const
inline

◆ getNSilentTimeouts()

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

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

◆ setNSilentTimeouts()

void nfd::fw::asf::FaceInfo::setNSilentTimeouts ( size_t  nSilentTimeouts)
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

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

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

◆ RTT_TIMEOUT

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

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

Referenced by hasTimeout(), and recordTimeout().


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