NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nfd::Forwarder Class Reference

main class of NFD More...

#include <forwarder.hpp>

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 ()
 
CsgetCs ()
 
MeasurementsgetMeasurements ()
 
StrategyChoicegetStrategyChoice ()
 
DeadNonceListgetDeadNonceList ()
 
void setCsFromNdnSim (ns3::Ptr< ns3::ndn::ContentStore > cs)
 

Public Attributes

signal::Signal< Forwarder,
pit::Entry, Face, Data > 
beforeSatisfyInterest
 trigger before PIT entry is satisfied More...
 
signal::Signal< Forwarder,
pit::Entry
beforeExpirePendingInterest
 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 ( )
nfd::Forwarder::~Forwarder ( )

Definition at line 54 of file forwarder.cpp.

Member Function Documentation

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

add new Face

shortcut to .getFaceTable().add(face)

Definition at line 249 of file forwarder.hpp.

References nfd::FaceTable::add().

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

Definition at line 231 of file forwarder.hpp.

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

Definition at line 285 of file forwarder.hpp.

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

Definition at line 303 of file forwarder.hpp.

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

get existing Face

shortcut to .getFaceTable().get(face)

Definition at line 243 of file forwarder.hpp.

References nfd::FaceTable::get().

Referenced by nfd::fw::Strategy::getFace().

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

Definition at line 237 of file forwarder.hpp.

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

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

Definition at line 273 of file forwarder.hpp.

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

Definition at line 291 of file forwarder.hpp.

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

Definition at line 267 of file forwarder.hpp.

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

Definition at line 279 of file forwarder.hpp.

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

Definition at line 297 of file forwarder.hpp.

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

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

Definition at line 261 of file forwarder.hpp.

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

Definition at line 255 of file forwarder.hpp.

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

Definition at line 309 of file forwarder.hpp.

Friends And Related Function Documentation

friend class fw::Strategy
friend

Definition at line 227 of file forwarder.hpp.

Member Data Documentation

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.

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.


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