#include <ndn-cxx/util/notification-subscriber.hpp>
Public Member Functions | |
virtual | ~NotificationSubscriberBase () |
time::milliseconds | getInterestLifetime () const |
bool | isRunning () const |
void | start () |
Start or resume receiving notifications. More... | |
void | stop () |
Stop receiving notifications. More... | |
Public Attributes | |
ndn::signal::Signal< NotificationSubscriberBase, Data > | onDecodeError |
Fires when a Data packet in the notification stream cannot be decoded as a Notification. More... | |
ndn::signal::Signal< NotificationSubscriberBase, lp::Nack > | onNack |
Fires when a Nack is received. More... | |
ndn::signal::Signal< NotificationSubscriberBase > | onTimeout |
Fires when no Notification is received within getInterestLifetime() period. More... | |
Protected Member Functions | |
NotificationSubscriberBase (Face &face, const Name &prefix, time::milliseconds interestLifetime) | |
Construct a NotificationSubscriber. More... | |
Definition at line 39 of file notification-subscriber.hpp.
|
virtualdefault |
|
protected |
Construct a NotificationSubscriber.
Definition at line 35 of file notification-subscriber.cpp.
|
inline |
This must be greater than FreshnessPeriod of Notification Data packets, to ensure correct operation of this subscriber implementation.
Definition at line 51 of file notification-subscriber.hpp.
|
inline |
Definition at line 57 of file notification-subscriber.hpp.
void ndn::util::NotificationSubscriberBase::start | ( | ) |
Start or resume receiving notifications.
Definition at line 47 of file notification-subscriber.cpp.
void ndn::util::NotificationSubscriberBase::stop | ( | ) |
Stop receiving notifications.
Definition at line 57 of file notification-subscriber.cpp.
ndn::signal::Signal<NotificationSubscriberBase, Data> ndn::util::NotificationSubscriberBase::onDecodeError |
Fires when a Data packet in the notification stream cannot be decoded as a Notification.
Definition at line 128 of file notification-subscriber.hpp.
ndn::signal::Signal<NotificationSubscriberBase, lp::Nack> ndn::util::NotificationSubscriberBase::onNack |
Fires when a Nack is received.
Definition at line 122 of file notification-subscriber.hpp.
ndn::signal::Signal<NotificationSubscriberBase> ndn::util::NotificationSubscriberBase::onTimeout |
Fires when no Notification is received within getInterestLifetime() period.
Definition at line 125 of file notification-subscriber.hpp.