base class to allow simple management of packet tags More...
#include <packet-base.hpp>
Public Member Functions | |
uint64_t | getCongestionMark () const |
get the value of the CongestionMark tag More... | |
void | setCongestionMark (uint64_t mark) |
set the CongestionMark tag to the specified value More... | |
Public Member Functions inherited from ndn::TagHost | |
template<typename T > | |
shared_ptr< T > | getTag () const |
get a tag item More... | |
template<typename T > | |
void | setTag (shared_ptr< T > tag) const |
set a tag item More... | |
template<typename T > | |
void | removeTag () const |
remove tag item More... | |
base class to allow simple management of packet tags
Definition at line 31 of file packet-base.hpp.
uint64_t ndn::PacketBase::getCongestionMark | ( | ) | const |
get the value of the CongestionMark tag
Definition at line 28 of file packet-base.cpp.
Referenced by ndn::util::SegmentFetcher::stop().
void ndn::PacketBase::setCongestionMark | ( | uint64_t | mark | ) |
set the CongestionMark tag to the specified value
Definition at line 41 of file packet-base.cpp.
References nonstd::optional_lite::std11::move(), and ndn::TagHost::setTag().