26 #ifndef NFD_DAEMON_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
27 #define NFD_DAEMON_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
32 #include <ndn-cxx/mgmt/nfd/command-options.hpp>
33 #include <ndn-cxx/mgmt/nfd/controller.hpp>
34 #include <ndn-cxx/mgmt/nfd/control-parameters.hpp>
45 const ndn::nfd::CommandOptions& options = ndn::nfd::CommandOptions(),
46 const ndn::nfd::ControlParameters& parameters =
47 ndn::nfd::ControlParameters().setOrigin(ndn::nfd::ROUTE_ORIGIN_CLIENT));
53 std::function<
void()> successCb,
54 std::function<
void(
const std::string&)> failureCb)
override;
60 std::function<
void()> successCb,
61 std::function<
void(
const std::string&)> failureCb)
override;
64 ndn::nfd::ControlParameters
67 return m_controlParameters;
70 ndn::nfd::CommandOptions
73 return m_commandOptions;
77 ndn::nfd::Controller& m_controller;
79 signal::ScopedConnection m_ribInsertConn;
80 signal::ScopedConnection m_ribEraseConn;
82 ndn::nfd::CommandOptions m_commandOptions;
83 ndn::nfd::ControlParameters m_controlParameters;
A readvertise destination using NFD RIB management protocol.
void advertise(const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
Add a name prefix into NFD RIB.
ndn::nfd::CommandOptions getCommandOptions() const
void withdraw(const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
Remove a name prefix from NFD RIB.
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))
ndn::nfd::ControlParameters getControlParameters() const
A destination to readvertise into.
State of a readvertised route.
Represents the Routing Information Base.