NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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
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
nfd::rib::ReadvertiseDestination::isAvailable
bool isAvailable() const
Definition:
readvertise-destination.hpp:53
logger.hpp
ndnSIM
NFD
rib
readvertise
readvertise-destination.cpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14