All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
ndn::CongestionMark Class Reference

CongestionMark represents the congestion mark header field in an NDNLPv2 packet. More...

#include <congestion-mark.hpp>

Inheritance diagram for ndn::CongestionMark:
ndn::LpPacketHeaderField

Public Member Functions

 CongestionMark ()
 Create a CongestionMark where all the values are unspecified.
 
virtual ~CongestionMark ()
 Override the virtual destructor.
 
uint64_t getCongestionMark () const
 Get the congestion mark value. More...
 
void set (const CongestionMarkLite &congestionMarkLite)
 Clear this CongestionMark, and set the values by copying from congestionMarkLite. More...
 
- Public Member Functions inherited from ndn::LpPacketHeaderField
virtual ~LpPacketHeaderField ()
 The virtual destructor for the base class.
 

Static Public Member Functions

static ptr_lib::shared_ptr
< CongestionMark
getFirstHeader (LpPacket &lpPacket)
 Get the first header field in lpPacket which is an CongestionMark. More...
 

Detailed Description

CongestionMark represents the congestion mark header field in an NDNLPv2 packet.

http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2

Member Function Documentation

uint64_t ndn::CongestionMark::getCongestionMark ( ) const
inline

Get the congestion mark value.

Returns
The congestion mark value.
ptr_lib::shared_ptr< CongestionMark > ndn::CongestionMark::getFirstHeader ( LpPacket lpPacket)
static

Get the first header field in lpPacket which is an CongestionMark.

This is an internal method which the application normally would not use.

Parameters
lpPacketThe LpPacket with the header fields to search.
Returns
The first CongestionMark header field, or null if not found.
void ndn::CongestionMark::set ( const CongestionMarkLite congestionMarkLite)

Clear this CongestionMark, and set the values by copying from congestionMarkLite.

Parameters
congestionMarkLiteAn CongestionMarkLite object.

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