nfd-rib-readvertise-destination.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
27 #define NFD_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
28 
29 #include "readvertised-route.hpp"
31 
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>
37 
38 namespace nfd {
39 namespace rib {
40 
44 {
45 public:
46  NfdRibReadvertiseDestination(ndn::nfd::Controller& controller,
47  const ndn::Name& commandPrefix);
48 
51  void
53  std::function<void()> successCb,
54  std::function<void(const std::string&)> failureCb) override;
55 
58  void
60  std::function<void()> successCb,
61  std::function<void(const std::string&)> failureCb) override;
62 
63 private:
64  ndn::nfd::Controller& m_controller;
65  Name m_commandPrefix;
66 };
67 
68 } // namespace rib
69 } // namespace nfd
70 
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