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

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().

Member Function Documentation

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::RemoteRegistrator::disable(), nfd::rib::RemoteRegistrator::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::RemoteRegistrator::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::Name::size(), nfd::rib::RibUpdate::UNREGISTER, ndn::Validator::validate(), ndn::nfd::ControlCommand::validateRequest(), ndn::nfd::ControlParameters::wireDecode(), and ndn::nfd::ControlParameters::wireEncode().

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

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

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

References NFD_LOG_DEBUG.

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

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: