28 #ifndef NDN_UTIL_NOTIFICATION_STREAM_HPP 29 #define NDN_UTIL_NOTIFICATION_STREAM_HPP 42 template<
typename Notification>
51 , m_keyChain(keyChain)
62 Name dataName = m_prefix;
65 shared_ptr<Data> data = make_shared<Data>(dataName);
66 data->setContent(notification.wireEncode());
67 data->setFreshnessPeriod(1_s);
69 m_keyChain.sign(*data);
79 uint64_t m_sequenceNo;
85 #endif // NDN_UTIL_NOTIFICATION_STREAM_HPP
provides a publisher of Notification Stream
void postNotification(const Notification ¬ification)
virtual ~NotificationStream()=default
Provide a communication channel with local or remote NDN forwarder.
NotificationStream(Face &face, const Name &prefix, KeyChain &keyChain)
Name & appendSequenceNumber(uint64_t seqNo)
Append a sequence number component.
Represents an absolute name.
void put(Data data)
Publish data packet.
a concept check for TLV abstraction with .wireEncode method