provides a subscriber of Notification Stream More...
#include <notification-subscriber.hpp>


Public Member Functions | |
| NotificationSubscriber (Face &face, const Name &prefix, const time::milliseconds &interestLifetime=time::milliseconds(60000)) | |
| construct a NotificationSubscriber More... | |
| virtual | ~NotificationSubscriber () |
| time::milliseconds | getInterestLifetime () const |
| bool | isRunning () const |
| void | start () |
| start or resume receiving notifications More... | |
| void | stop () |
| stop receiving notifications More... | |
Public Attributes | |
| WireDecodable< Notification > | |
| signal::Signal< NotificationSubscriber, Notification > | onNotification |
| fires when a Notification is received More... | |
| signal::Signal< NotificationSubscriber, lp::Nack > | onNack |
| fires when a NACK is received More... | |
| signal::Signal< NotificationSubscriber > | onTimeout |
| fires when no Notification is received within .getInterestLifetime period More... | |
| signal::Signal< NotificationSubscriber, Data > | onDecodeError |
| fires when a Data packet in the Notification Stream cannot be decoded as Notification More... | |
provides a subscriber of Notification Stream
| Notification | type of Notification item, appears in payload of Data packets |
Definition at line 68 of file notification-subscriber.hpp.
|
inline |
construct a NotificationSubscriber
Definition at line 78 of file notification-subscriber.hpp.
|
inlinevirtual |
Definition at line 93 of file notification-subscriber.hpp.
|
inline |
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.
|
inline |
Definition at line 108 of file notification-subscriber.hpp.
|
inline |
start or resume receiving notifications
Definition at line 118 of file notification-subscriber.hpp.
Referenced by nfd::rib::RibManager::registerWithNfd().
|
inline |
stop receiving notifications
Definition at line 130 of file notification-subscriber.hpp.
| ndn::util::NotificationSubscriber< Notification >::WireDecodable< Notification > |
Definition at line 72 of file notification-subscriber.hpp.
| signal::Signal<NotificationSubscriber, Notification> ndn::util::NotificationSubscriber< Notification >::onNotification |
fires when a Notification is received
Definition at line 145 of file notification-subscriber.hpp.
Referenced by nfd::rib::RibManager::registerWithNfd().
| signal::Signal<NotificationSubscriber, lp::Nack> ndn::util::NotificationSubscriber< Notification >::onNack |
fires when a NACK is received
Definition at line 149 of file notification-subscriber.hpp.
| signal::Signal<NotificationSubscriber> ndn::util::NotificationSubscriber< Notification >::onTimeout |
fires when no Notification is received within .getInterestLifetime period
Definition at line 153 of file notification-subscriber.hpp.
| signal::Signal<NotificationSubscriber, Data> ndn::util::NotificationSubscriber< Notification >::onDecodeError |
fires when a Data packet in the Notification Stream cannot be decoded as Notification
Definition at line 157 of file notification-subscriber.hpp.