Represents a Network Nack. More...
#include <ndn-cxx/lp/nack.hpp>
Public Member Functions | |
Nack () | |
Nack (const Interest &interest) | |
Nack (Interest &&interest) | |
uint64_t | getCongestionMark () const |
Get the value of the CongestionMark tag. More... | |
NackHeader & | getHeader () |
const NackHeader & | getHeader () const |
Interest & | getInterest () |
const Interest & | getInterest () const |
NackReason | getReason () const |
template<typename T > | |
shared_ptr< T > | getTag () const |
Get a tag item. More... | |
template<typename T > | |
void | removeTag () const |
Remove a tag item. More... | |
void | setCongestionMark (uint64_t mark) |
Set the CongestionMark tag to the specified value. More... | |
Nack & | setHeader (const NackHeader &header) |
Nack & | setHeader (NackHeader &&header) |
Nack & | setReason (NackReason reason) |
template<typename T > | |
void | setTag (shared_ptr< T > tag) const |
Set (add or replace) a tag item. More... | |
Represents a Network Nack.
This type binds a NackHeader and an Interest, and is intended for use in network layer.
|
default |
|
inherited |
Get the value of the CongestionMark tag.
Definition at line 28 of file packet-base.cpp.
|
inline |
|
inline |
|
inline |
|
inherited |
Get a tag item.
T | type of the tag, which must be a subclass of ndn::Tag |
nullptr | if no Tag of type T is stored |
Definition at line 67 of file tag-host.hpp.
|
inherited |
Remove a tag item.
Definition at line 94 of file tag-host.hpp.
|
inherited |
Set the CongestionMark tag to the specified value.
Definition at line 41 of file packet-base.cpp.
|
inline |
|
inline |
|
inline |
|
inherited |
Set (add or replace) a tag item.
T | type of the tag, which must be a subclass of ndn::Tag |
Definition at line 80 of file tag-host.hpp.