implement the FIB Management of NFD Management Protocol. More...
#include <fib-manager.hpp>
Public Member Functions | |
FibManager (Fib &fib, function< shared_ptr< Face >(FaceId)> getFace, Dispatcher &dispatcher, CommandValidator &validator) | |
construct a FibManger More... | |
Public Member Functions inherited from nfd::ManagerBase | |
ManagerBase (Dispatcher &dispatcher, CommandValidator &validator, const std::string &module) | |
Additional Inherited Members | |
Protected Types inherited from nfd::ManagerBase | |
typedef function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters ¶meters, 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) |
implement the FIB Management of NFD Management Protocol.
Definition at line 40 of file fib-manager.hpp.
nfd::FibManager::FibManager | ( | Fib & | fib, |
function< shared_ptr< Face >(FaceId)> | getFace, | ||
Dispatcher & | dispatcher, | ||
CommandValidator & | validator | ||
) |
construct a FibManger
fib | the managed FIB |
getFace | a function used to retrive a face by FaceId from the face table |
dispatcher | the management dispatcher |
validator | the command validator |
Definition at line 33 of file fib-manager.cpp.
References ndn::nfd::FibEntry::addNextHopRecord(), ndn::mgmt::StatusDatasetContext::append(), ndn::mgmt::StatusDatasetContext::end(), nfd::Fib::erase(), nfd::Fib::findExactMatch(), ndn::nfd::ControlParameters::getCost(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getName(), ndn::TagHost::getTag(), nfd::Fib::insert(), NFD_LOG_DEBUG, NFD_LOG_INFO, NFD_LOG_TRACE, nfd::ManagerBase::registerStatusDatasetHandler(), ndn::nfd::NextHopRecord::setCost(), ndn::nfd::NextHopRecord::setFaceId(), ndn::nfd::ControlParameters::setFaceId(), ndn::nfd::FibEntry::setPrefix(), ndn::nfd::ControlParameters::wireEncode(), and ndn::nfd::FibEntry::wireEncode().