rib+tools: subscribe to FaceMonitor notifications using connect
refs #2350 Change-Id: I1b1b33cdcc3638c7344b6c690f928aff25aa5c8c
This commit is contained in:
1 parent
04cf5a99d9
commit
fbf783450c
2 files changed
+9
-9
No files matched your search
+1
-1
@@ -126,7 +126,7 @@ RibManager::registerWithNfd()
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
@@ -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 @@ public:
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user