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 a Data packet.
Represents an absolute name.
Name & appendSequenceNumber(uint64_t seqNo)
Append a sequence number component.
A concept check for TLV abstraction with a wireEncode() method.
Provides a publisher of Notification Stream.
virtual ~NotificationStream()=default
NotificationStream(Face &face, const Name &prefix, KeyChain &keyChain)
void postNotification(const Notification ¬ification)