rib+tools: subscribe to FaceMonitor notifications using connect
refs #2350
Change-Id: I1b1b33cdcc3638c7344b6c690f928aff25aa5c8c
diff --git a/rib/rib-manager.cpp b/rib/rib-manager.cpp
index ae64820..e577626 100644
--- a/rib/rib-manager.cpp
+++ b/rib/rib-manager.cpp
@@ -126,7 +126,7 @@
}
NFD_LOG_INFO("Start monitoring face create/destroy events");
- m_faceMonitor.onNotification += bind(&RibManager::onNotification, this, _1);
+ m_faceMonitor.onNotification.connect(bind(&RibManager::onNotification, this, _1));
m_faceMonitor.start();
scheduleActiveFaceFetch(ACTIVE_FACE_FETCH_INTERVAL);
diff --git a/tools/nfd-autoreg.cpp b/tools/nfd-autoreg.cpp
index 0ad6841..c6de1f5 100644
--- a/tools/nfd-autoreg.cpp
+++ b/tools/nfd-autoreg.cpp
@@ -1,12 +1,12 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014, Regents of the University of California,
- * Arizona Board of Regents,
- * Colorado State University,
- * University Pierre & Marie Curie, Sorbonne University,
- * Washington University in St. Louis,
- * Beijing Institute of Technology,
- * The University of Memphis
+ * Copyright (c) 2014-2015, Regents of the University of California,
+ * Arizona Board of Regents,
+ * Colorado State University,
+ * University Pierre & Marie Curie, Sorbonne University,
+ * Washington University in St. Louis,
+ * Beijing Institute of Technology,
+ * The University of Memphis.
*
* This file is part of NFD (Named Data Networking Forwarding Daemon).
* See AUTHORS.md for complete list of NFD authors and contributors.
@@ -234,7 +234,7 @@
std::cout << " " << *network << std::endl;
}
- m_faceMonitor.onNotification += bind(&AutoregServer::onNotification, this, _1);
+ m_faceMonitor.onNotification.connect(bind(&AutoregServer::onNotification, this, _1));
m_faceMonitor.start();
boost::asio::signal_set signalSet(m_face.getIoService(), SIGINT, SIGTERM);