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> 46 const ndn::nfd::CommandOptions& options = ndn::nfd::CommandOptions(),
47 const ndn::nfd::ControlParameters& parameters =
48 ndn::nfd::ControlParameters()
49 .setOrigin(ndn::nfd::ROUTE_ORIGIN_CLIENT));
55 std::function<
void()> successCb,
56 std::function<
void(
const std::string&)> failureCb)
override;
62 std::function<
void()> successCb,
63 std::function<
void(
const std::string&)> failureCb)
override;
66 ndn::nfd::ControlParameters
69 ndn::nfd::CommandOptions
74 handleRibInsert(
const Name& name);
77 handleRibErase(
const Name& name);
80 ndn::nfd::Controller& m_controller;
82 signal::ScopedConnection m_ribInsertConn;
83 signal::ScopedConnection m_ribEraseConn;
85 ndn::nfd::CommandOptions m_commandOptions;
86 ndn::nfd::ControlParameters m_controlParameters;
92 #endif // NFD_DAEMON_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP 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))
represents the Routing Information Base
state of a readvertised route
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
ndn::nfd::CommandOptions getCommandOptions()
a destination to readvertise into
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
ndn::nfd::ControlParameters getControlParameters()