NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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; -*- */
27 #include "core/logger.hpp"
28 
29 namespace nfd {
30 namespace rib {
31 
32 NFD_LOG_INIT("ReadvertiseDestination");
33 
34 void
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
#define NFD_LOG_DEBUG(expression)
Definition: logger.hpp:55
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
signal::Signal< ReadvertiseDestination, bool > afterAvailabilityChange
signals when the destination becomes available or unavailable
#define NFD_LOG_INIT(name)
Definition: logger.hpp:34