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:161
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
#define NFD_LOG_INIT(name)
Definition: logger.hpp:122
signal::Signal< ReadvertiseDestination, bool > afterAvailabilityChange
signals when the destination becomes available or unavailable