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 ()
 
Face * getFace (FaceId id) const
 get existing Face More...
 
void addFace (shared_ptr< Face > face)
 add new Face More...
 
fw::UnsolicitedDataPolicygetUnsolicitedDataPolicy () const
 
void setUnsolicitedDataPolicy (unique_ptr< fw::UnsolicitedDataPolicy > policy)
 
void startProcessInterest (Face &face, const Interest &interest)
 start incoming Interest processing More...
 
void startProcessData (Face &face, const Data &data)
 start incoming Data processing More...
 
void startProcessNack (Face &face, const lp::Nack &nack)
 start incoming Nack processing More...
 
NameTree & getNameTree ()
 
Fib & getFib ()
 
Pit & getPit ()
 
Cs & getCs ()
 
Measurements & getMeasurements ()
 
StrategyChoice & getStrategyChoice ()
 
DeadNonceListgetDeadNonceList ()
 
NetworkRegionTablegetNetworkRegionTable ()
 

Friends

class fw::Strategy
 

Detailed Description

main class of NFD

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

Definition at line 52 of file forwarder.hpp.

Constructor & Destructor Documentation

nfd::Forwarder::Forwarder ( )

Definition at line 44 of file forwarder.cpp.

nfd::Forwarder::~Forwarder ( )
default

Member Function Documentation

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

add new Face

shortcut to .getFaceTable().add(face)

Definition at line 88 of file forwarder.hpp.

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

Definition at line 61 of file forwarder.hpp.

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

Definition at line 147 of file forwarder.hpp.

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

Definition at line 165 of file forwarder.hpp.

Face* nfd::Forwarder::getFace ( FaceId  id) const
inline

get existing Face

shortcut to .getFaceTable().get(face)

Definition at line 78 of file forwarder.hpp.

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

Definition at line 68 of file forwarder.hpp.

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

Definition at line 135 of file forwarder.hpp.

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

Definition at line 153 of file forwarder.hpp.

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

Definition at line 129 of file forwarder.hpp.

NetworkRegionTable& nfd::Forwarder::getNetworkRegionTable ( )
inline

Definition at line 171 of file forwarder.hpp.

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

Definition at line 141 of file forwarder.hpp.

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

Definition at line 159 of file forwarder.hpp.

fw::UnsolicitedDataPolicy& nfd::Forwarder::getUnsolicitedDataPolicy ( ) const
inline

Definition at line 94 of file forwarder.hpp.

void nfd::Forwarder::setUnsolicitedDataPolicy ( unique_ptr< fw::UnsolicitedDataPolicy policy)
inline

Definition at line 100 of file forwarder.hpp.

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

start incoming Data processing

Parameters
faceface on which Data is received
datathe incoming Data, must be created with make_shared

Definition at line 95 of file forwarder.cpp.

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

start incoming Interest processing

Parameters
faceface on which Interest is received
interestthe incoming Interest, must be created with make_shared

Definition at line 76 of file forwarder.cpp.

void nfd::Forwarder::startProcessNack ( Face &  face,
const lp::Nack &  nack 
)

start incoming Nack processing

Parameters
faceface on which Nack is received
nackthe incoming Nack, must be created with make_shared

Definition at line 104 of file forwarder.cpp.

Friends And Related Function Documentation

friend class fw::Strategy
friend

Definition at line 295 of file forwarder.hpp.