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

§ SegmentPublisher()

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.

§ ~SegmentPublisher()

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

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

Member Function Documentation

§ getMaxSegmentSize()

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().

§ getDefaultFreshness()

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

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

§ publish()

template<class FaceBase>
void nfd::SegmentPublisher< FaceBase >::publish ( )
inline

§ generate()

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

In a derived class, write the octets into outBuffer.

Implemented in nfd::rib::RibStatusPublisher.

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


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