provides a subscriber of Notification Stream More...
#include <notification-subscriber.hpp>
Public Member Functions | |
NotificationSubscriber (Face &face, const Name &prefix, time::milliseconds interestLifetime=1_min) | |
construct a NotificationSubscriber More... | |
time::milliseconds | getInterestLifetime () const |
bool | isRunning () const |
void | start () |
start or resume receiving notifications More... | |
void | stop () |
stop receiving notifications More... | |
Public Attributes | |
signal::Signal< NotificationSubscriberBase, Data > | onDecodeError |
fires when a Data packet in the Notification Stream cannot be decoded as Notification More... | |
signal::Signal< NotificationSubscriberBase, lp::Nack > | onNack |
fires when a NACK is received More... | |
signal::Signal< NotificationSubscriber, Notification > | onNotification |
fires when a Notification is received More... | |
signal::Signal< NotificationSubscriberBase > | onTimeout |
fires when no Notification is received within .getInterestLifetime period More... | |
provides a subscriber of Notification Stream
Notification | type of Notification item, appears in payload of Data packets |
Definition at line 149 of file notification-subscriber.hpp.
|
inline |
construct a NotificationSubscriber
Definition at line 159 of file notification-subscriber.hpp.
|
inlineinherited |
This must be greater than FreshnessPeriod of Notification Data packets, to ensure correct operation of this subscriber implementation.
Definition at line 53 of file notification-subscriber.hpp.
|
inlineinherited |
Definition at line 59 of file notification-subscriber.hpp.
|
inherited |
start or resume receiving notifications
Definition at line 54 of file notification-subscriber.cpp.
|
inherited |
stop receiving notifications
Definition at line 64 of file notification-subscriber.cpp.
|
inherited |
fires when a Data packet in the Notification Stream cannot be decoded as Notification
Definition at line 129 of file notification-subscriber.hpp.
|
inherited |
fires when a NACK is received
Definition at line 121 of file notification-subscriber.hpp.
signal::Signal<NotificationSubscriber, Notification> ndn::util::NotificationSubscriber< Notification >::onNotification |
fires when a Notification is received
Definition at line 169 of file notification-subscriber.hpp.
|
inherited |
fires when no Notification is received within .getInterestLifetime period
Definition at line 125 of file notification-subscriber.hpp.