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

#include <rib-manager.hpp>

Inheritance diagram for nfd::rib::RibManager:
Collaboration diagram for nfd::rib::RibManager:

Classes

class  Error
 

Public Member Functions

 RibManager (Dispatcher &dispatcher, ndn::Face &face, ndn::KeyChain &keyChain)
 
 ~RibManager ()
 
void registerWithNfd ()
 
void enableLocalFields ()
 
void setConfigFile (ConfigFile &configFile)
 
void onRibUpdateSuccess (const RibUpdate &update)
 
void onRibUpdateFailure (const RibUpdate &update, uint32_t code, const std::string &error)
 
- Public Member Functions inherited from nfd::ManagerBase
 ManagerBase (Dispatcher &dispatcher, const std::string &module)
 
const std::string & getModule () const
 

Additional Inherited Members

- Protected Types inherited from nfd::ManagerBase
typedef function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters &parameters, const ndn::mgmt::CommandContinuation done)> ControlCommandHandler
 
- Protected Member Functions inherited from nfd::ManagerBase
template<typename Command >
void registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler)
 
void registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler)
 
ndn::mgmt::PostNotification registerNotificationStream (const std::string &verb)
 
void extractRequester (const Interest &interest, ndn::mgmt::AcceptContinuation accept)
 extract a requester from a ControlCommand request More...
 

Detailed Description

Definition at line 52 of file rib-manager.hpp.

Constructor & Destructor Documentation

◆ RibManager()

nfd::rib::RibManager::RibManager ( Dispatcher dispatcher,
ndn::Face face,
ndn::KeyChain keyChain 
)

◆ ~RibManager()

nfd::rib::RibManager::~RibManager ( )

Definition at line 70 of file rib-manager.cpp.

References nfd::scheduler::cancel().

Referenced by nfd::rib::RibManager::Error::Error().

Member Function Documentation

◆ registerWithNfd()

◆ enableLocalFields()

void nfd::rib::RibManager::enableLocalFields ( )

◆ setConfigFile()

void nfd::rib::RibManager::setConfigFile ( ConfigFile configFile)

Definition at line 102 of file rib-manager.cpp.

References nfd::ConfigFile::addSectionHandler().

Referenced by nfd::rib::RibManager::Error::Error().

◆ onRibUpdateSuccess()

void nfd::rib::RibManager::onRibUpdateSuccess ( const RibUpdate update)

Definition at line 109 of file rib-manager.cpp.

References NFD_LOG_DEBUG.

Referenced by nfd::rib::RibManager::Error::Error(), and onRibUpdateFailure().

◆ onRibUpdateFailure()

void nfd::rib::RibManager::onRibUpdateFailure ( const RibUpdate update,
uint32_t  code,
const std::string &  error 
)

Definition at line 115 of file rib-manager.cpp.

References ndn::nfd::RibEntry::addRoute(), ndn::mgmt::StatusDatasetContext::append(), nfd::rib::Rib::beginApplyUpdate(), nfd::rib::Rib::beginRemoveFace(), nfd::scheduler::cancel(), ndn::tlv::nfd::ControlParameters, nfd::rib::Route::cost, nfd::rib::AutoPrefixPropagator::disable(), nfd::rib::AutoPrefixPropagator::enable(), ndn::mgmt::StatusDatasetContext::end(), nfd::rib::Route::expires, nfd::ManagerBase::extractRequester(), ndn::nfd::FACE_EVENT_DESTROYED, nfd::rib::Route::faceId, ndn::nfd::Controller::fetch(), nfd::rib::Route::flags, ndn::mgmt::ControlResponse::getCode(), ndn::nfd::ControlParameters::getCost(), ndn::nfd::ControlParameters::getExpirationPeriod(), ndn::nfd::FaceTraits< C >::getFaceId(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getFlags(), ndn::nfd::FaceEventNotification::getKind(), ndn::nfd::ControlParameters::getName(), ndn::nfd::ControlParameters::getOrigin(), ndn::TagHost::getTag(), ndn::mgmt::ControlResponse::getText(), ndn::nfd::ControlParameters::hasExpirationPeriod(), nfd::rib::Rib::insert(), ndn::security::ValidatorConfig::load(), nfd::rib::AutoPrefixPropagator::loadConfig(), ns3::ndn::Name, NFD_LOG_DEBUG, NFD_LOG_INFO, NFD_LOG_TRACE, ndn::time::steady_clock::now(), onRibUpdateSuccess(), nfd::rib::Rib::onRouteExpiration(), nfd::rib::Route::origin, nfd::rib::RibUpdate::REGISTER, ndn::nfd::ROUTE_FLAG_CHILD_INHERIT, ndn::nfd::ROUTE_ORIGIN_APP, nfd::scheduler::schedule(), nfd::rib::RibUpdate::setAction(), ndn::nfd::Route::setCost(), nfd::rib::Route::setExpirationEvent(), ndn::nfd::Route::setExpirationPeriod(), ndn::nfd::Route::setFaceId(), ndn::nfd::ControlParameters::setFaceId(), ndn::nfd::Route::setFlags(), nfd::rib::RibUpdate::setName(), ndn::nfd::RibEntry::setName(), ndn::nfd::Route::setOrigin(), ndn::nfd::Controller::start(), ndn::mgmt::STATUS403, ndn::to_string(), ndn::Name::toUri(), nfd::rib::RibUpdate::UNREGISTER, ndn::security::Validator::validate(), ndn::nfd::ControlParameters::wireEncode(), and ndn::nfd::RibEntry::wireEncode().

Referenced by nfd::rib::RibManager::Error::Error().


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