22 #ifndef NDN_CXX_UTIL_NOTIFICATION_STREAM_HPP
23 #define NDN_CXX_UTIL_NOTIFICATION_STREAM_HPP
36 template<
typename Notification>
45 , m_keyChain(keyChain)
56 Name dataName = m_prefix;
59 shared_ptr<Data> data = make_shared<Data>(dataName);
60 data->setContent(notification.wireEncode());
61 data->setFreshnessPeriod(1_s);
63 m_keyChain.sign(*data);
73 uint64_t m_sequenceNo;
Provide a communication channel with local or remote NDN forwarder.
void put(Data data)
Publish data packet.
Represents an absolute name.
Name & appendSequenceNumber(uint64_t seqNo)
Append a sequence number component.
a concept check for TLV abstraction with .wireEncode method
provides a publisher of Notification Stream
virtual ~NotificationStream()=default
NotificationStream(Face &face, const Name &prefix, KeyChain &keyChain)
void postNotification(const Notification ¬ification)