provides a publisher of Status Dataset or other segmented octet stream More...
#include <segment-publisher.hpp>
Public Member Functions | |
SegmentPublisher (FaceBase &face, ndn::KeyChain &keyChain, const ndn::security::SigningInfo &signingInfo, const ndn::time::milliseconds &freshnessPeriod=getDefaultFreshness()) | |
virtual | ~SegmentPublisher () |
void | publish (const ndn::Name &prefix) |
Publish data under the provided prefix. More... | |
Static Public Member Functions | |
static size_t | getMaxSegmentSize () |
Define the max segment size as half the max NDN packet size. More... | |
static constexpr ndn::time::milliseconds | getDefaultFreshness () |
Protected Member Functions | |
virtual size_t | generate (ndn::EncodingBuffer &outBuffer)=0 |
In a derived class, write the octets into outBuffer. More... | |
provides a publisher of Status Dataset or other segmented octet stream
Definition at line 38 of file segment-publisher.hpp.
|
inline |
Definition at line 41 of file segment-publisher.hpp.
|
inlinevirtual |
Definition at line 53 of file segment-publisher.hpp.
|
protectedpure virtual |
In a derived class, write the octets into outBuffer.
Implemented in nlsr::LsaContentPublisher.
|
inlinestatic |
Definition at line 67 of file segment-publisher.hpp.
|
inlinestatic |
Define the max segment size as half the max NDN packet size.
Definition at line 60 of file segment-publisher.hpp.
|
inline |
Publish data under the provided prefix.
Processes whatever is provided from SegmentPublisher::generate, by breaking it into segments of MAX_SEGMENT_SIZE and sending each one individually. The last segment is distinguished by having the final block ID set to a timestamp.
Definition at line 80 of file segment-publisher.hpp.