ndn::lp::NackHeader Class Reference

represents a Network NACK header More...

#include <ndn-cxx/lp/nack-header.hpp>

Public Member Functions

 NackHeader ()
 
 NackHeader (const Block &block)
 
NackReason getReason () const
 
NackHeadersetReason (NackReason reason)
 set reason code More...
 
void wireDecode (const Block &wire)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 
const BlockwireEncode () const
 

Detailed Description

represents a Network NACK header

Definition at line 57 of file nack-header.hpp.

Constructor & Destructor Documentation

ndn::lp::NackHeader::NackHeader ( )

Definition at line 62 of file nack-header.cpp.

ndn::lp::NackHeader::NackHeader ( const Block block)
explicit

Definition at line 67 of file nack-header.cpp.

Member Function Documentation

NackReason ndn::lp::NackHeader::getReason ( ) const
Returns
reason code
Return values
NackReason::NONEif NackReason element does not exist or has an unknown code

Definition at line 127 of file nack-header.cpp.

NackHeader & ndn::lp::NackHeader::setReason ( NackReason  reason)

set reason code

Parameters
reasona reason code; NackReason::NONE clears the reason

Definition at line 140 of file nack-header.cpp.

void ndn::lp::NackHeader::wireDecode ( const Block wire)

Definition at line 104 of file nack-header.cpp.

template<encoding::Tag TAG>
size_t ndn::lp::NackHeader::wireEncode ( EncodingImpl< TAG > &  encoder) const

Definition at line 74 of file nack-header.cpp.

const Block & ndn::lp::NackHeader::wireEncode ( ) const

Definition at line 86 of file nack-header.cpp.