NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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 (ndn::Face &face, ndn::KeyChain &keyChain)
 
 ~RibManager ()
 
void registerWithNfd ()
 
void enableLocalControlHeader ()
 
void setConfigFile (ConfigFile &configFile)
 
void onRibUpdateSuccess (const RibUpdate &update)
 
void onRibUpdateFailure (const RibUpdate &update, uint32_t code, const std::string &error)
 

Detailed Description

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

Constructor & Destructor Documentation

§ RibManager()

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

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

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

§ ~RibManager()

Member Function Documentation

§ registerWithNfd()

§ enableLocalControlHeader()

§ setConfigFile()

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

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

References nfd::ConfigFile::addSectionHandler(), ndn::nfd::ControlCommand::applyDefaultsToRequest(), nfd::rib::Rib::beginApplyUpdate(), ndn::Block::blockFromValue(), nfd::rib::Route::cost, nfd::rib::AutoPrefixPropagator::disable(), nfd::rib::AutoPrefixPropagator::enable(), nfd::rib::Route::expires, nfd::rib::Route::faceId, nfd::rib::Route::flags, ndn::Name::get(), ndn::nfd::ControlParameters::getCost(), ndn::nfd::ControlParameters::getExpirationPeriod(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getFlags(), ndn::nfd::ControlParameters::getName(), ndn::Interest::getName(), ndn::nfd::ControlParameters::getOrigin(), ndn::nfd::ControlParameters::hasExpirationPeriod(), ndn::nfd::ControlParameters::hasFaceId(), ndn::nfd::ControlParameters::hasOrigin(), ndn::ValidatorConfig::load(), nfd::rib::AutoPrefixPropagator::loadConfig(), NFD_LOG_DEBUG, NFD_LOG_ERROR, NFD_LOG_INFO, NFD_LOG_TRACE, ndn::time::steady_clock::now(), onRibUpdateFailure(), onRibUpdateSuccess(), nfd::rib::Rib::onRouteExpiration(), nfd::rib::Route::origin, ndn::Face::put(), nfd::rib::RibUpdate::REGISTER, nfd::scheduler::schedule(), nfd::rib::RibUpdate::setAction(), ndn::mgmt::ControlResponse::setBody(), ndn::mgmt::ControlResponse::setCode(), nfd::rib::Route::setExpirationEvent(), ndn::nfd::ControlParameters::setFaceId(), nfd::rib::RibUpdate::setName(), ndn::nfd::ControlParameters::setName(), ndn::nfd::ControlParameters::setOrigin(), ndn::mgmt::ControlResponse::setText(), ndn::security::KeyChain::sign(), ndn::Name::size(), nfd::rib::RibUpdate::UNREGISTER, ndn::Validator::validate(), ndn::nfd::ControlCommand::validateRequest(), ndn::nfd::ControlParameters::wireDecode(), ndn::mgmt::ControlResponse::wireEncode(), and ndn::nfd::ControlParameters::wireEncode().

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

§ onRibUpdateSuccess()

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

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

References NFD_LOG_DEBUG.

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

§ onRibUpdateFailure()

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

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