main class of NFD More...
#include <forwarder.hpp>
Public Member Functions | |
Forwarder () | |
~Forwarder () | |
const ForwarderCounters & | getCounters () const |
FaceTable & | getFaceTable () |
Face * | getFace (FaceId id) const |
get existing Face More... | |
void | addFace (shared_ptr< Face > face) |
add new Face More... | |
fw::UnsolicitedDataPolicy & | getUnsolicitedDataPolicy () 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 () |
DeadNonceList & | getDeadNonceList () |
NetworkRegionTable & | getNetworkRegionTable () |
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 |
main class of NFD
Forwarder owns all faces and tables, and implements forwarding pipelines.
Definition at line 54 of file forwarder.hpp.
nfd::Forwarder::Forwarder | ( | ) |
Definition at line 46 of file forwarder.cpp.
References nfd::FaceTable::addReserved(), nfd::FaceTable::afterAdd, nfd::fw::Strategy::afterReceiveInterest(), nfd::fw::Strategy::afterReceiveNack(), nfd::fw::Strategy::beforeExpirePendingInterest(), beforeExpirePendingInterest, nfd::FaceTable::beforeRemove, nfd::fw::Strategy::beforeSatisfyInterest(), beforeSatisfyInterest, nfd::fw::CACHE, nfd::cleanupOnFaceRemoval(), nfd::fw::DUPLICATE_NONCE_IN_SAME, nfd::fw::DUPLICATE_NONCE_NONE, ndn::DelegationList::empty(), Face, ndn::nfd::FACE_SCOPE_NON_LOCAL, nfd::face::FACEID_CONTENT_STORE, nfd::fw::findDuplicateNonce(), nfd::FaceTable::get(), nfd::getDefaultStrategyName(), getFaceTable(), ndn::Interest::getForwardingHint(), ndn::Data::getFreshnessPeriod(), ndn::lp::Nack::getInterest(), ndn::Data::getName(), ndn::Interest::getName(), ndn::Interest::getNonce(), ndn::lp::NackHeader::getReason(), ndn::lp::Nack::getReason(), ndn::TagHost::getTag(), nfd::DeadNonceList::has(), nfd::fw::hasPendingOutRecords(), nfd::face::INVALID_FACEID, nfd::NetworkRegionTable::isInProducerRegion(), ndn::Name::isPrefixOf(), ndn::nfd::LINK_TYPE_AD_HOC, ndn::nfd::LINK_TYPE_POINT_TO_POINT, nfd::scope_prefix::LOCALHOST, nfd::ForwarderCounters::nCsHits, nfd::ForwarderCounters::nCsMisses, NFD_LOG_DEBUG, NFD_LOG_ERROR, NFD_LOG_WARN, nfd::ForwarderCounters::nInData, nfd::ForwarderCounters::nInInterests, nfd::ForwarderCounters::nInNacks, nfd::ForwarderCounters::nOutData, nfd::ForwarderCounters::nOutInterests, nfd::ForwarderCounters::nOutNacks, ndn::time::steady_clock::now(), ndn::lp::Nack::setHeader(), ndn::TagHost::setTag(), startProcessData(), startProcessInterest(), startProcessNack(), and ~Forwarder().
|
default |
Referenced by Forwarder().
|
inline |
Definition at line 63 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 70 of file forwarder.hpp.
References Face.
Referenced by Forwarder(), and nfd::fw::Strategy::getFaceTable().
|
inline |
get existing Face
shortcut to .getFaceTable().get(face)
Definition at line 80 of file forwarder.hpp.
Referenced by nfd::fw::Strategy::getFace().
|
inline |
|
inline |
Definition at line 96 of file forwarder.hpp.
|
inline |
Definition at line 102 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
start incoming Interest processing
face | face on which Interest is received |
interest | the incoming Interest, must be well-formed and created with make_shared |
Definition at line 114 of file forwarder.hpp.
Referenced by Forwarder().
start incoming Data processing
face | face on which Data is received |
data | the incoming Data, must be well-formed and created with make_shared |
Definition at line 124 of file forwarder.hpp.
Referenced by Forwarder().
start incoming Nack processing
face | face on which Nack is received |
nack | the incoming Nack, must be well-formed |
Definition at line 134 of file forwarder.hpp.
References nfd::name_tree::NameTree.
Referenced by Forwarder().
|
inline |
Definition at line 140 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 146 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 152 of file forwarder.hpp.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 158 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured(), and nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 164 of file forwarder.hpp.
References nfd::strategy_choice::StrategyChoice.
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager().
|
inline |
Definition at line 170 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
|
inline |
Definition at line 176 of file forwarder.hpp.
|
inline |
Definition at line 182 of file forwarder.hpp.
Referenced by nfd::TablesConfigSection::ensureConfigured(), and nfd::fw::Strategy::lookupFib().
|
inline |
Definition at line 189 of file forwarder.hpp.
|
friend |
Definition at line 327 of file forwarder.hpp.
signal::Signal<Forwarder, pit::Entry, Face, Data> nfd::Forwarder::beforeSatisfyInterest |
trigger before PIT entry is satisfied
Definition at line 198 of file forwarder.hpp.
Referenced by Forwarder().
signal::Signal<Forwarder, pit::Entry> nfd::Forwarder::beforeExpirePendingInterest |
trigger before PIT entry expires
Definition at line 203 of file forwarder.hpp.
Referenced by Forwarder().