ndn::nfd::FaceMonitor Class Reference

A subscriber for Face status change notification stream. More...

#include <face-monitor.hpp>

Inheritance diagram for ndn::nfd::FaceMonitor:
[legend]
Collaboration diagram for ndn::nfd::FaceMonitor:
[legend]

Public Member Functions

 FaceMonitor (Face &face)
 
time::milliseconds getInterestLifetime () const
 
bool isRunning () const
 
void start ()
 start or resume receiving notifications More...
 
void stop ()
 stop receiving notifications More...
 

Data Fields

 WireDecodable< Notification >
 
signal::Signal< NotificationSubscriber, FaceEventNotificationonNotification
 fires when a Notification is received More...
 
signal::Signal< NotificationSubscriber, lp::NackonNack
 fires when a NACK is received More...
 
signal::Signal< NotificationSubscriberonTimeout
 fires when no Notification is received within .getInterestLifetime period More...
 
signal::Signal< NotificationSubscriber, DataonDecodeError
 fires when a Data packet in the Notification Stream cannot be decoded as Notification More...
 

Detailed Description

A subscriber for Face status change notification stream.

See also
http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Status-Change-Notification

Definition at line 60 of file face-monitor.hpp.

Constructor & Destructor Documentation

ndn::nfd::FaceMonitor::FaceMonitor ( Face face)
inline

Definition at line 63 of file face-monitor.hpp.

Member Function Documentation

time::milliseconds ndn::util::NotificationSubscriber< FaceEventNotification >::getInterestLifetime ( ) const
inlineinherited
Returns
InterestLifetime of Interests to retrieve notifications

This must be greater than FreshnessPeriod of Notification Data packets, to ensure correct operation of this subscriber implementation.

Definition at line 102 of file notification-subscriber.hpp.

bool ndn::util::NotificationSubscriber< FaceEventNotification >::isRunning ( ) const
inlineinherited

Definition at line 108 of file notification-subscriber.hpp.

void ndn::util::NotificationSubscriber< FaceEventNotification >::start ( )
inlineinherited

start or resume receiving notifications

Note
onNotification must have at least one listener, otherwise this operation has no effect.

Definition at line 118 of file notification-subscriber.hpp.

void ndn::util::NotificationSubscriber< FaceEventNotification >::stop ( )
inlineinherited

stop receiving notifications

Definition at line 130 of file notification-subscriber.hpp.

Field Documentation

fires when a Data packet in the Notification Stream cannot be decoded as Notification

Definition at line 157 of file notification-subscriber.hpp.

fires when a NACK is received

Definition at line 149 of file notification-subscriber.hpp.

fires when a Notification is received

Note
Removing all handlers will cause the subscriber to stop.

Definition at line 145 of file notification-subscriber.hpp.

fires when no Notification is received within .getInterestLifetime period

Definition at line 153 of file notification-subscriber.hpp.