esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
ndnph::NackHeader Class Reference

Nack header field. More...

#include <nack.hpp>

Inherits ndnph::RefRegion< detail::InterestObj >.

Public Types

using MaxSize = std::integral_constant< size_t, 3+1+3+1+1 >
 Maximum encoded size.
 
- Public Types inherited from ndnph::RefRegion< detail::InterestObj >
using ObjType = detail::InterestObj
 

Public Member Functions

NackReason getReason () const
 
void setReason (NackReason v)
 
void encodeTo (Encoder &encoder) const
 
bool decodeFrom (const Decoder::Tlv &input)
 
 RefRegion (ObjType *obj=nullptr)
 
- Public Member Functions inherited from ndnph::RefRegion< detail::InterestObj >
 RefRegion (ObjType *obj=nullptr)
 
 operator bool () const
 

Additional Inherited Members

- Protected Member Functions inherited from ndnph::RefRegion< detail::InterestObj >
 ~RefRegion ()=default
 
- Protected Attributes inherited from ndnph::RefRegion< detail::InterestObj >
ObjTypeobj
 

Detailed Description

Nack header field.

Member Typedef Documentation

◆ MaxSize

using ndnph::NackHeader::MaxSize = std::integral_constant<size_t, 3 + 1 + 3 + 1 + 1>

Maximum encoded size.

Member Function Documentation

◆ decodeFrom()

bool ndnph::NackHeader::decodeFrom ( const Decoder::Tlv input)
inline

◆ encodeTo()

void ndnph::NackHeader::encodeTo ( Encoder encoder) const
inline

◆ getReason()

NackReason ndnph::NackHeader::getReason ( ) const
inline

◆ RefRegion()

ndnph::RefRegion< Obj >::RefRegion ( ObjType obj = nullptr)
inlineexplicit

◆ setReason()

void ndnph::NackHeader::setReason ( NackReason  v)
inline

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