ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
Loading...
Searching...
No Matches
face-monitor.hpp
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2014-2023 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.
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
28#ifndef NDN_CXX_MGMT_NFD_FACE_MONITOR_HPP
29#define NDN_CXX_MGMT_NFD_FACE_MONITOR_HPP
30
33
34namespace ndn::nfd {
35
40class FaceMonitor : public util::NotificationSubscriber<FaceEventNotification>
41{
42public:
43 explicit
45 : NotificationSubscriber(face, "/localhost/nfd/faces/events")
46 {
47 }
48};
49
50} // namespace ndn::nfd
51
52#endif // NDN_CXX_MGMT_NFD_FACE_MONITOR_HPP
Provide a communication channel with local or remote NDN forwarder.
Definition face.hpp:91
A subscriber for the Face status change notification stream.
Provides the subscriber side of a Notification Stream.
NotificationSubscriber(Face &face, const Name &prefix, time::milliseconds interestLifetime=1_min)
Construct a NotificationSubscriber.
Contains classes and functions related to the NFD Management protocol.