NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
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) 2011-2015 Regents of the University of California.
NotificationSubscriber(Face &face, const Name &prefix, const time::milliseconds &interestLifetime=time::milliseconds(60000))
construct a NotificationSubscriber
represents a Face status change notification
A subscriber for Face status change notification stream.
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
Provide a communication channel with local or remote NDN forwarder.
Definition: face.hpp:125
provides a subscriber of Notification Stream