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

define the RemoteRegistrator class, which handles the registration/unregistration to remote hub(s). More...

#include <remote-registrator.hpp>

Inheritance diagram for nfd::rib::RemoteRegistrator:
Collaboration diagram for nfd::rib::RemoteRegistrator:

Classes

class  Error
 

Public Member Functions

 RemoteRegistrator (ndn::nfd::Controller &controller, ndn::KeyChain &keyChain, Rib &rib)
 
 ~RemoteRegistrator ()
 
void loadConfig (const ConfigSection &configSection)
 load the "remote_register" section from config file More...
 
void enable ()
 enable remote registration/unregistration. More...
 
void disable ()
 disable remote registration/unregistration. More...
 
void registerPrefix (const Name &prefix)
 register a prefix to remote hub(s). More...
 
void unregisterPrefix (const Name &prefix)
 unregister a prefix from remote hub(s). More...
 

Detailed Description

define the RemoteRegistrator class, which handles the registration/unregistration to remote hub(s).

Definition at line 48 of file remote-registrator.hpp.

Constructor & Destructor Documentation

nfd::rib::RemoteRegistrator::RemoteRegistrator ( ndn::nfd::Controller controller,
ndn::KeyChain &  keyChain,
Rib rib 
)

Definition at line 43 of file remote-registrator.cpp.

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

nfd::rib::RemoteRegistrator::~RemoteRegistrator ( )

Member Function Documentation

void nfd::rib::RemoteRegistrator::loadConfig ( const ConfigSection configSection)
void nfd::rib::RemoteRegistrator::enable ( )
void nfd::rib::RemoteRegistrator::disable ( )

disable remote registration/unregistration.

Definition at line 136 of file remote-registrator.cpp.

References ndn::util::signal::ScopedConnection::disconnect().

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

void nfd::rib::RemoteRegistrator::registerPrefix ( const Name prefix)

register a prefix to remote hub(s).

For the input prefix, we find the longest identity in the key-chain that can sign it, and then register this identity to remote hub(s).

Parameters
prefixthe prefix being registered in local RIB.

Definition at line 143 of file remote-registrator.cpp.

References ndn::Name::getPrefix(), ndn::Name::isPrefixOf(), NFD_LOG_INFO, ndn::nfd::ControlParameters::setName(), ndn::nfd::CommandOptions::setSigningInfo(), and ndn::security::signingByIdentity().

Referenced by enable(), and nfd::rib::RemoteRegistrator::Error::Error().

void nfd::rib::RemoteRegistrator::unregisterPrefix ( const Name prefix)

unregister a prefix from remote hub(s).

For the input prefix, if the longest identity can sign it is already registered remotely, that identity should be unregistered from remote hub(s).

Parameters
prefixthe prefix being unregistered in local RIB.

Definition at line 205 of file remote-registrator.cpp.

References nfd::scheduler::cancel(), ndn::nfd::ControlParameters::getName(), ndn::Name::getPrefix(), ndn::Name::isPrefixOf(), NFD_LOG_DEBUG, NFD_LOG_INFO, nfd::scheduler::schedule(), ndn::nfd::ControlParameters::setName(), ndn::nfd::CommandOptions::setSigningInfo(), ndn::security::signingByIdentity(), ndn::nfd::Controller::start(), and ndn::nfd::ControlParameters::unsetCost().

Referenced by enable(), and nfd::rib::RemoteRegistrator::Error::Error().


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