NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
readvertise-destination.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
readvertise-destination.hpp
"
27
#include "
core/logger.hpp
"
28
29
namespace
nfd
{
30
namespace
rib {
31
32
NFD_LOG_INIT
(
"ReadvertiseDestination"
);
33
34
void
35
ReadvertiseDestination::setAvailability
(
bool
isAvailable)
36
{
37
if
(m_isAvailable != isAvailable) {
38
if
(isAvailable) {
39
NFD_LOG_DEBUG
(
"Destination has become available."
);
40
}
41
else
{
42
NFD_LOG_DEBUG
(
"Destinatino has become unavailable."
);
43
}
44
m_isAvailable =
isAvailable
;
45
afterAvailabilityChange
(isAvailable);
46
}
47
}
48
49
}
// namespace rib
50
}
// namespace nfd
NFD_LOG_DEBUG
#define NFD_LOG_DEBUG(expression)
Definition:
logger.hpp:55
readvertise-destination.hpp
nfd::rib::ReadvertiseDestination::setAvailability
void setAvailability(bool isAvailable)
Definition:
readvertise-destination.cpp:35
nfd::rib::ReadvertiseDestination::isAvailable
bool isAvailable() const
Definition:
readvertise-destination.hpp:53
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::ReadvertiseDestination::afterAvailabilityChange
signal::Signal< ReadvertiseDestination, bool > afterAvailabilityChange
signals when the destination becomes available or unavailable
Definition:
readvertise-destination.hpp:65
NFD_LOG_INIT
#define NFD_LOG_INIT(name)
Definition:
logger.hpp:34
logger.hpp
ndnSIM
NFD
rib
readvertise
readvertise-destination.cpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11