a readvertise destination using NFD RIB management protocol More...
#include <nfd-rib-readvertise-destination.hpp>
Public Member Functions | |
NfdRibReadvertiseDestination (ndn::nfd::Controller &controller, Rib &rib, const ndn::nfd::CommandOptions &options=ndn::nfd::CommandOptions(), const ndn::nfd::ControlParameters ¶meters=ndn::nfd::ControlParameters().setOrigin(ndn::nfd::ROUTE_ORIGIN_CLIENT)) | |
void | advertise (const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override |
add a name prefix into NFD RIB More... | |
void | withdraw (const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override |
remove a name prefix from NFD RIB More... | |
Public Member Functions inherited from nfd::rib::ReadvertiseDestination | |
virtual | ~ReadvertiseDestination ()=default |
bool | isAvailable () const |
Protected Member Functions | |
ndn::nfd::ControlParameters | getControlParameters () const |
ndn::nfd::CommandOptions | getCommandOptions () const |
Protected Member Functions inherited from nfd::rib::ReadvertiseDestination | |
void | setAvailability (bool isAvailable) |
Additional Inherited Members | |
Public Attributes inherited from nfd::rib::ReadvertiseDestination | |
signal::Signal< ReadvertiseDestination, bool > | afterAvailabilityChange |
signals when the destination becomes available or unavailable More... | |
a readvertise destination using NFD RIB management protocol
Definition at line 41 of file nfd-rib-readvertise-destination.hpp.
nfd::rib::NfdRibReadvertiseDestination::NfdRibReadvertiseDestination | ( | ndn::nfd::Controller & | controller, |
Rib & | rib, | ||
const ndn::nfd::CommandOptions & | options = ndn::nfd::CommandOptions() , |
||
const ndn::nfd::ControlParameters & | parameters = ndn::nfd::ControlParameters().setOrigin(ndn::nfd::ROUTE_ORIGIN_CLIENT) |
||
) |
Definition at line 39 of file nfd-rib-readvertise-destination.cpp.
References nfd::rib::Rib::afterEraseEntry, nfd::rib::Rib::afterInsertEntry, ndn::nfd::CommandOptions::getPrefix(), ndn::Name::isPrefixOf(), and nfd::rib::ReadvertiseDestination::setAvailability().
|
overridevirtual |
add a name prefix into NFD RIB
Implements nfd::rib::ReadvertiseDestination.
Definition at line 61 of file nfd-rib-readvertise-destination.cpp.
References getCommandOptions(), getControlParameters(), ndn::nfd::CommandOptions::getPrefix(), NFD_LOG_DEBUG, nfd::rib::ReadvertisedRoute::prefix, ndn::nfd::ControlParameters::setName(), ndn::nfd::CommandOptions::setSigningInfo(), nfd::rib::ReadvertisedRoute::signer, and ndn::nfd::Controller::start().
|
overridevirtual |
remove a name prefix from NFD RIB
Implements nfd::rib::ReadvertiseDestination.
Definition at line 75 of file nfd-rib-readvertise-destination.cpp.
References getCommandOptions(), getControlParameters(), ndn::nfd::CommandOptions::getPrefix(), NFD_LOG_DEBUG, nfd::rib::ReadvertisedRoute::prefix, ndn::nfd::ControlParameters::setName(), ndn::nfd::CommandOptions::setSigningInfo(), nfd::rib::ReadvertisedRoute::signer, and ndn::nfd::Controller::start().
|
inlineprotected |
Definition at line 66 of file nfd-rib-readvertise-destination.hpp.
Referenced by advertise(), and withdraw().
|
inlineprotected |
Definition at line 72 of file nfd-rib-readvertise-destination.hpp.
Referenced by advertise(), and withdraw().