NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::SegmentPublisher< FaceBase > Class Template Referenceabstract

provides a publisher of Status Dataset or other segmented octet stream More...

#include <segment-publisher.hpp>

Inheritance diagram for nfd::SegmentPublisher< FaceBase >:
Collaboration diagram for nfd::SegmentPublisher< FaceBase >:

Public Member Functions

 SegmentPublisher (FaceBase &face, const Name &prefix, ndn::KeyChain &keyChain, const time::milliseconds &freshnessPeriod=getDefaultFreshness())
 
virtual ~SegmentPublisher ()
 
void publish ()
 

Static Public Member Functions

static size_t getMaxSegmentSize ()
 
static constexpr time::milliseconds getDefaultFreshness ()
 

Protected Member Functions

virtual size_t generate (ndn::EncodingBuffer &outBuffer)=0
 In a derived class, write the octets into outBuffer. More...
 

Detailed Description

template<class FaceBase>
class nfd::SegmentPublisher< FaceBase >

provides a publisher of Status Dataset or other segmented octet stream

See also
http://redmine.named-data.net/projects/nfd/wiki/StatusDataset

Definition at line 40 of file segment-publisher.hpp.

Constructor & Destructor Documentation

template<class FaceBase>
nfd::SegmentPublisher< FaceBase >::SegmentPublisher ( FaceBase &  face,
const Name prefix,
ndn::KeyChain &  keyChain,
const time::milliseconds &  freshnessPeriod = getDefaultFreshness() 
)
inline

Definition at line 43 of file segment-publisher.hpp.

template<class FaceBase>
virtual nfd::SegmentPublisher< FaceBase >::~SegmentPublisher ( )
inlinevirtual

Definition at line 55 of file segment-publisher.hpp.

Member Function Documentation

template<class FaceBase>
static size_t nfd::SegmentPublisher< FaceBase >::getMaxSegmentSize ( )
inlinestatic

Definition at line 60 of file segment-publisher.hpp.

Referenced by nfd::SegmentPublisher< ndn::Face >::publish().

template<class FaceBase>
static constexpr time::milliseconds nfd::SegmentPublisher< FaceBase >::getDefaultFreshness ( )
inlinestatic

Definition at line 67 of file segment-publisher.hpp.

template<class FaceBase>
virtual size_t nfd::SegmentPublisher< FaceBase >::generate ( ndn::EncodingBuffer &  outBuffer)
protectedpure virtual

The documentation for this class was generated from the following file: