Junxiao Shi | 7357ef2 | 2016-09-07 02:39:37 +0000 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Davide Pesavento | 0fba51a | 2017-02-04 22:36:50 -0500 | [diff] [blame] | 3 | * Copyright (c) 2014-2017 Regents of the University of California, |
| 4 | * Arizona Board of Regents, |
| 5 | * Colorado State University, |
| 6 | * University Pierre & Marie Curie, Sorbonne University, |
| 7 | * Washington University in St. Louis, |
| 8 | * Beijing Institute of Technology, |
| 9 | * The University of Memphis. |
Junxiao Shi | 7357ef2 | 2016-09-07 02:39:37 +0000 | [diff] [blame] | 10 | * |
| 11 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 12 | * |
| 13 | * ndn-cxx library is free software: you can redistribute it and/or modify it under the |
| 14 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 15 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 18 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 19 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 20 | * |
| 21 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 22 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
| 23 | * <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 26 | */ |
| 27 | |
Junxiao Shi | 7357ef2 | 2016-09-07 02:39:37 +0000 | [diff] [blame] | 28 | #ifndef NDN_MGMT_NFD_FACE_MONITOR_HPP |
| 29 | #define NDN_MGMT_NFD_FACE_MONITOR_HPP |
| 30 | |
| 31 | #include "../../util/notification-subscriber.hpp" |
| 32 | #include "face-event-notification.hpp" |
| 33 | |
| 34 | namespace ndn { |
| 35 | namespace nfd { |
| 36 | |
| 37 | /** \brief A subscriber for Face status change notification stream |
Davide Pesavento | 0fba51a | 2017-02-04 22:36:50 -0500 | [diff] [blame] | 38 | * \sa https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Status-Change-Notification |
Junxiao Shi | 7357ef2 | 2016-09-07 02:39:37 +0000 | [diff] [blame] | 39 | */ |
| 40 | class FaceMonitor : public util::NotificationSubscriber<FaceEventNotification> |
| 41 | { |
| 42 | public: |
Davide Pesavento | 0fba51a | 2017-02-04 22:36:50 -0500 | [diff] [blame] | 43 | explicit |
| 44 | FaceMonitor(Face& face); |
Junxiao Shi | 7357ef2 | 2016-09-07 02:39:37 +0000 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | } // namespace nfd |
| 48 | } // namespace ndn |
| 49 | |
| 50 | #endif // NDN_MGMT_NFD_FACE_MONITOR_HPP |