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

main class of NFD More...

#include <forwarder.hpp>

Collaboration diagram for nfd::Forwarder:

Public Member Functions

 Forwarder ()
 
 ~Forwarder ()
 
const ForwarderCountersgetCounters () const
 
FaceTablegetFaceTable ()
 
shared_ptr< FacegetFace (FaceId id) const
 get existing Face More...
 
void addFace (shared_ptr< Face > face)
 add new Face More...
 
void onInterest (Face &face, const Interest &interest)
 
void onData (Face &face, const Data &data)
 
NameTreegetNameTree ()
 
FibgetFib ()
 
PitgetPit ()
 
Cs & getCs ()
 
MeasurementsgetMeasurements ()
 
StrategyChoicegetStrategyChoice ()
 
DeadNonceListgetDeadNonceList ()
 
void setCsFromNdnSim (ns3::Ptr< ns3::ndn::ContentStore > cs)
 

Public Attributes

signal::Signal< Forwarder, pit::Entry, Face, DatabeforeSatisfyInterest
 trigger before PIT entry is satisfied More...
 
signal::Signal< Forwarder, pit::EntrybeforeExpirePendingInterest
 trigger before PIT entry expires More...
 

Friends

class fw::Strategy
 

Detailed Description

main class of NFD

Forwarder owns all faces and tables, and implements forwarding pipelines.

Definition at line 54 of file forwarder.hpp.

Constructor & Destructor Documentation

nfd::Forwarder::Forwarder ( )

Member Function Documentation

const ForwarderCounters & nfd::Forwarder::getCounters ( ) const
inline

Definition at line 242 of file forwarder.hpp.

Referenced by nfd::StatusServer::StatusServer().

FaceTable & nfd::Forwarder::getFaceTable ( )
inline

Definition at line 248 of file forwarder.hpp.

Referenced by Forwarder(), and nfd::fw::Strategy::getFaceTable().

shared_ptr< Face > nfd::Forwarder::getFace ( FaceId  id) const
inline

get existing Face

shortcut to .getFaceTable().get(face)

Definition at line 254 of file forwarder.hpp.

Referenced by nfd::fw::Strategy::getFace(), and nfd::ignoreRibAndLogSections().

void nfd::Forwarder::addFace ( shared_ptr< Face face)
inline

add new Face

shortcut to .getFaceTable().add(face)

Definition at line 260 of file forwarder.hpp.

void nfd::Forwarder::onInterest ( Face face,
const Interest interest 
)
inline

Definition at line 266 of file forwarder.hpp.

Referenced by nfd::FaceTable::addReserved().

void nfd::Forwarder::onData ( Face face,
const Data data 
)
inline

Definition at line 272 of file forwarder.hpp.

Referenced by nfd::FaceTable::addReserved().

NameTree & nfd::Forwarder::getNameTree ( )
inline

Definition at line 278 of file forwarder.hpp.

Referenced by nfd::StatusServer::StatusServer().

Fib & nfd::Forwarder::getFib ( )
inline

Definition at line 284 of file forwarder.hpp.

Referenced by nfd::FaceTable::addReserved(), and nfd::StatusServer::StatusServer().

Pit & nfd::Forwarder::getPit ( )
inline

Definition at line 290 of file forwarder.hpp.

Referenced by nfd::StatusServer::StatusServer().

Cs & nfd::Forwarder::getCs ( )
inline

Definition at line 296 of file forwarder.hpp.

Referenced by nfd::StatusServer::StatusServer().

Measurements & nfd::Forwarder::getMeasurements ( )
inline

Definition at line 302 of file forwarder.hpp.

Referenced by nfd::StatusServer::StatusServer().

StrategyChoice & nfd::Forwarder::getStrategyChoice ( )
inline

Definition at line 308 of file forwarder.hpp.

Referenced by nfd::fw::installStrategies().

DeadNonceList & nfd::Forwarder::getDeadNonceList ( )
inline

Definition at line 314 of file forwarder.hpp.

void nfd::Forwarder::setCsFromNdnSim ( ns3::Ptr< ns3::ndn::ContentStore cs)
inline

Definition at line 320 of file forwarder.hpp.

Friends And Related Function Documentation

friend class fw::Strategy
friend

Definition at line 238 of file forwarder.hpp.

Member Data Documentation

signal::Signal<Forwarder, pit::Entry, Face, Data> nfd::Forwarder::beforeSatisfyInterest

trigger before PIT entry is satisfied

See also
Strategy::beforeSatisfyInterest

Definition at line 119 of file forwarder.hpp.

Referenced by nfd::compare_pickInterest(), and ~Forwarder().

signal::Signal<Forwarder, pit::Entry> nfd::Forwarder::beforeExpirePendingInterest

trigger before PIT entry expires

See also
Strategy::beforeExpirePendingInterest

Definition at line 124 of file forwarder.hpp.

Referenced by nfd::compare_pickInterest().


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