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 () override
 
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)
 
virtual ~ManagerBase ()
 
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 48 of file rib-manager.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

References nfd::ConfigFile::addSectionHandler().

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

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

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

References NFD_LOG_DEBUG.

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

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

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

References websocketpp::extensions::permessage_deflate::mode::accept, ndn::nfd::RibEntry::addRoute(), ndn::mgmt::StatusDatasetContext::append(), nfd::rib::Rib::beginApplyUpdate(), nfd::rib::Rib::beginRemoveFace(), 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(), nfd::rib::RibEntry::getName(), ndn::nfd::ControlParameters::getName(), ndn::nfd::ControlParameters::getOrigin(), nfd::rib::RibEntry::getRoutes(), ndn::TagHost::getTag(), ndn::mgmt::ControlResponse::getText(), ndn::nfd::ControlParameters::hasExpirationPeriod(), nfd::rib::Rib::insert(), nfd::rib::AutoPrefixPropagator::loadConfig(), ns3::ndn::Name, NFD_LOG_DEBUG, NFD_LOG_INFO, NFD_LOG_TRACE, ndn::time::steady_clock::now(), ndn::nullopt, onRibUpdateSuccess(), nfd::rib::Rib::onRouteExpiration(), nfd::rib::Route::origin, nfd::ConfigFile::parseYesNo(), nfd::rib::Readvertise, 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::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: