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/controller.hpp> 43 const Name& commandPrefix,
50 std::function<
void()> successCb,
51 std::function<
void(
const std::string&)> failureCb)
override;
57 std::function<
void()> successCb,
58 std::function<
void(
const std::string&)> failureCb)
override;
62 handleRibInsert(
const Name& name);
65 handleRibErase(
const Name& name);
68 ndn::nfd::Controller& m_controller;
71 signal::ScopedConnection m_ribInsertConn;
72 signal::ScopedConnection m_ribEraseConn;
78 #endif // NFD_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
represents the Routing Information Base
state of a readvertised route
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
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
NfdRibReadvertiseDestination(ndn::nfd::Controller &controller, const Name &commandPrefix, Rib &rib)