43 : m_controller(controller)
44 , m_commandOptions(options)
45 , m_controlParameters(parameters)
62 std::function<
void()> successCb,
63 std::function<
void(
const std::string&)> failureCb)
76 std::function<
void()> successCb,
77 std::function<
void(
const std::string&)> failureCb)
void start(const ControlParameters ¶meters, const CommandSucceedCallback &onSuccess, const CommandFailCallback &onFailure, const CommandOptions &options=CommandOptions())
start command execution
represents the Routing Information Base
#define NFD_LOG_INIT(name)
represents parameters in a ControlCommand request or response
bool isPrefixOf(const Name &other) const
Check if this name is a prefix of another name.
void withdraw(const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
remove a name prefix from NFD RIB
void advertise(const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
add a name prefix into NFD RIB
a readvertise destination using NFD RIB management protocol
signal::Signal< Rib, Name > afterEraseEntry
signals after a RIB entry is erased
void setAvailability(bool isAvailable)
mgmt::ControlResponse ControlResponse
contains options for ControlCommand execution
Copyright (c) 2011-2015 Regents of the University of California.
state of a readvertised route
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))
signal::Signal< Rib, Name > afterInsertEntry
signals after a RIB entry is inserted
ndn::security::SigningInfo signer
signer for commands
ndn::nfd::CommandOptions getCommandOptions() const
Name prefix
readvertised prefix
NFD Management protocol client.
Represents an absolute name.
represents a rib/unregister command
CommandOptions & setSigningInfo(const security::SigningInfo &signingInfo)
sets signing parameters
represents a rib/register command
const Name & getPrefix() const
ControlParameters & setName(const Name &name)
ndn::nfd::ControlParameters getControlParameters() const