NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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 "
readvertise-destination.hpp
"
30
#include "../rib.hpp"
31
32
#include <ndn-cxx/mgmt/nfd/controller.hpp>
33
34
namespace
nfd
{
35
namespace
rib {
36
39
class
NfdRibReadvertiseDestination
:
public
ReadvertiseDestination
40
{
41
public
:
42
NfdRibReadvertiseDestination
(
ndn::nfd::Controller
& controller,
43
const
Name
& commandPrefix,
44
Rib
& rib);
45
48
void
49
advertise
(
const
ReadvertisedRoute
& rr,
50
std::function<
void
()> successCb,
51
std::function<
void
(
const
std::string&)> failureCb)
override
;
52
55
void
56
withdraw
(
const
ReadvertisedRoute
& rr,
57
std::function<
void
()> successCb,
58
std::function<
void
(
const
std::string&)> failureCb)
override
;
59
60
private
:
61
void
62
handleRibInsert(
const
Name
&
name
);
63
64
void
65
handleRibErase(
const
Name
&
name
);
66
67
private
:
68
ndn::nfd::Controller
& m_controller;
69
Name
m_commandPrefix;
70
71
signal::ScopedConnection
m_ribInsertConn;
72
signal::ScopedConnection
m_ribEraseConn;
73
};
74
75
}
// namespace rib
76
}
// namespace nfd
77
78
#endif // NFD_RIB_READVERTISE_NFD_RIB_READVERTISE_DESTINATION_HPP
nfd::rib::Rib
represents the Routing Information Base
Definition:
rib.hpp:59
nfd::rib::NfdRibReadvertiseDestination::withdraw
void withdraw(const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
remove a name prefix from NFD RIB
Definition:
nfd-rib-readvertise-destination.cpp:70
nfd::rib::NfdRibReadvertiseDestination::advertise
void advertise(const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
add a name prefix into NFD RIB
Definition:
nfd-rib-readvertise-destination.cpp:56
nfd::rib::NfdRibReadvertiseDestination
a readvertise destination using NFD RIB management protocol
Definition:
nfd-rib-readvertise-destination.hpp:39
readvertise-destination.hpp
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::ReadvertisedRoute
state of a readvertised route
Definition:
readvertised-route.hpp:37
ndn::util::signal::ScopedConnection
disconnects a Connection automatically upon destruction
Definition:
scoped-connection.hpp:33
ndn::nfd::Controller
NFD Management protocol client.
Definition:
controller.hpp:50
ndn::Name
Represents an absolute name.
Definition:
name.hpp:42
nfd::rib::ReadvertiseDestination
a destination to readvertise into
Definition:
readvertise-destination.hpp:36
nfd::rib::NfdRibReadvertiseDestination::NfdRibReadvertiseDestination
NfdRibReadvertiseDestination(ndn::nfd::Controller &controller, const Name &commandPrefix, Rib &rib)
Definition:
nfd-rib-readvertise-destination.cpp:43
ndn::name
Definition:
name-component.cpp:38
ndnSIM
NFD
rib
readvertise
nfd-rib-readvertise-destination.hpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14