nfd::Forwarder Class Reference

Main class of NFD forwarding engine. More...

#include <daemon/fw/forwarder.hpp>

Public Member Functions

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

Friends

class fw::Strategy
 

Detailed Description

Main class of NFD forwarding engine.

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

Definition at line 51 of file forwarder.hpp.

Constructor & Destructor Documentation

nfd::Forwarder::Forwarder ( )

Definition at line 47 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 87 of file forwarder.hpp.

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

Definition at line 60 of file forwarder.hpp.

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

Definition at line 155 of file forwarder.hpp.

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

Definition at line 173 of file forwarder.hpp.

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

get existing Face

shortcut to .getFaceTable().get(face)

Definition at line 77 of file forwarder.hpp.

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

Definition at line 67 of file forwarder.hpp.

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

Definition at line 143 of file forwarder.hpp.

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

Definition at line 161 of file forwarder.hpp.

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

Definition at line 137 of file forwarder.hpp.

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

Definition at line 179 of file forwarder.hpp.

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

Definition at line 149 of file forwarder.hpp.

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

Definition at line 167 of file forwarder.hpp.

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

Definition at line 93 of file forwarder.hpp.

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

Definition at line 99 of file forwarder.hpp.

void nfd::Forwarder::startProcessData ( const FaceEndpoint ingress,
const Data &  data 
)
inline

start incoming Data processing

Parameters
ingressface on which Data is received and endpoint of the sender
datathe incoming Data, must be well-formed and created with make_shared

Definition at line 121 of file forwarder.hpp.

void nfd::Forwarder::startProcessInterest ( const FaceEndpoint ingress,
const Interest &  interest 
)
inline

start incoming Interest processing

Parameters
ingressface on which Interest is received and endpoint of the sender
interestthe incoming Interest, must be well-formed and created with make_shared

Definition at line 111 of file forwarder.hpp.

void nfd::Forwarder::startProcessNack ( const FaceEndpoint ingress,
const lp::Nack &  nack 
)
inline

start incoming Nack processing

Parameters
ingressface on which Nack is received and endpoint of the sender
nackthe incoming Nack, must be well-formed

Definition at line 131 of file forwarder.hpp.

Friends And Related Function Documentation

friend class fw::Strategy
friend

Definition at line 290 of file forwarder.hpp.