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"
52
#include "
face-event-notification.hpp
"
53
54
namespace
ndn
{
55
namespace
nfd
{
56
60
class
FaceMonitor
:
public
util::NotificationSubscriber
<FaceEventNotification>
61
{
62
public
:
63
FaceMonitor
(
Face
&
face
)
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
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::util::NotificationSubscriber< FaceEventNotification >::NotificationSubscriber
NotificationSubscriber(Face &face, const Name &prefix, const time::milliseconds &interestLifetime=time::milliseconds(60000))
construct a NotificationSubscriber
Definition:
notification-subscriber.hpp:78
ndn::nfd::FaceEventNotification
represents a Face status change notification
Definition:
face-event-notification.hpp:46
ndn::nfd::FaceMonitor
A subscriber for Face status change notification stream.
Definition:
face-monitor.hpp:60
ndn::nfd::FaceMonitor::FaceMonitor
FaceMonitor(Face &face)
Definition:
face-monitor.hpp:63
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::Face
Provide a communication channel with local or remote NDN forwarder.
Definition:
face.hpp:125
face
ndn::util::NotificationSubscriber
provides a subscriber of Notification Stream
Definition:
notification-subscriber.hpp:68
face-event-notification.hpp
ndnSIM
ndn-cxx
src
mgmt
nfd
face-monitor.hpp
Generated on Wed Jan 11 2017 18:17:14 for ndnSIM by
1.8.13