face-monitor.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
48 #ifndef NDN_MGMT_NFD_FACE_MONITOR_HPP
49 #define NDN_MGMT_NFD_FACE_MONITOR_HPP
50 
51 #include "../../util/notification-subscriber.hpp"
53 
54 namespace ndn {
55 namespace nfd {
56 
60 class FaceMonitor : public util::NotificationSubscriber<FaceEventNotification>
61 {
62 public:
64  : NotificationSubscriber<nfd::FaceEventNotification>(face, "ndn:/localhost/nfd/faces/events")
65  {
66  }
67 };
68 
69 } // namespace nfd
70 } // namespace ndn
71 
72 #endif // NDN_MGMT_NFD_FACE_MONITOR_HPP
Copyright (c) 2013-2016 Regents of the University of California.
Definition: common.hpp:74
represents a Face status change notification
A subscriber for Face status change notification stream.
Provide a communication channel with local or remote NDN forwarder.
Definition: face.hpp:121
provides a subscriber of Notification Stream
NotificationSubscriber(Face &face, const Name &prefix, time::milliseconds interestLifetime=time::seconds(60))
construct a NotificationSubscriber