|
ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
|
Represents a Network Nack header. More...
#include <ndn-cxx/lp/nack-header.hpp>
Public Member Functions | |
| NackHeader ()=default | |
| NackHeader (const Block &block) | |
| NackReason | getReason () const |
| Get reason code. | |
| NackHeader & | setReason (NackReason reason) |
| Set reason code. | |
| void | wireDecode (const Block &wire) |
| const Block & | wireEncode () const |
| template<encoding::Tag TAG> | |
| size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
Represents a Network Nack header.
Definition at line 56 of file nack-header.hpp.
|
default |
|
explicit |
Definition at line 57 of file nack-header.cpp.
| NackReason ndn::lp::NackHeader::getReason | ( | ) | const |
Get reason code.
| NackReason::NONE | if NackReason element does not exist or has an unknown code. |
Definition at line 115 of file nack-header.cpp.
| NackHeader & ndn::lp::NackHeader::setReason | ( | NackReason | reason | ) |
Set reason code.
| reason | a reason code; NackReason::NONE clears the reason |
Definition at line 128 of file nack-header.cpp.
| void ndn::lp::NackHeader::wireDecode | ( | const Block & | wire | ) |
Definition at line 93 of file nack-header.cpp.
| const Block & ndn::lp::NackHeader::wireEncode | ( | ) | const |
Definition at line 76 of file nack-header.cpp.
| size_t ndn::lp::NackHeader::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 64 of file nack-header.cpp.