26 #ifndef NFD_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
27 #define NFD_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-command.hpp>
35 #include <ndn-cxx/mgmt/nfd/control-parameters.hpp>
36 #include <ndn-cxx/mgmt/nfd/control-response.hpp>
47 const ndn::Name& commandPrefix);
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::Controller& m_controller;
71 #endif // NFD_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
void advertise(nfd::rib::ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
add a name prefix into NFD RIB
void withdraw(nfd::rib::ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
remove a name prefix from NFD RIB
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
a destination to readvertise into
NfdRibReadvertiseDestination(ndn::nfd::Controller &controller, const ndn::Name &commandPrefix)
a readvertise destination using NFD RIB management protocol