NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::lp::LocalControlHeaderFacade Class Reference

expose NDNLPv2 tags as LocalControlHeader API More...

#include <tags.hpp>

Public Types

enum  CachingPolicy : uint8_t { INVALID_POLICY = 0, NO_CACHE = 1 }
 

Public Member Functions

 DEPRECATED (explicit LocalControlHeaderFacade(TagHost &pkt))
 
bool hasIncomingFaceId () const
 
uint64_t getIncomingFaceId () const
 
void setIncomingFaceId (uint64_t incomingFaceId)
 
bool hasNextHopFaceId () const
 
uint64_t getNextHopFaceId () const
 
void setNextHopFaceId (uint64_t nextHopFaceId)
 
bool hasCachingPolicy () const
 
CachingPolicy getCachingPolicy () const
 
void setCachingPolicy (CachingPolicy cachingPolicy)
 

Detailed Description

expose NDNLPv2 tags as LocalControlHeader API

This class has the same public API as ndn::nfd::LocalControlHeader, but internally accesses IncomingFaceIdTag, NextHopFaceIdTag, CachePolicyTag on the host packet.

Deprecated:
use getTag and setTag with IncomingFaceIdTag, NextHopFaceIdTag, CachePolicyTag

Definition at line 64 of file tags.hpp.

Member Enumeration Documentation

§ CachingPolicy

Enumerator
INVALID_POLICY 
NO_CACHE 

Definition at line 92 of file tags.hpp.

Member Function Documentation

§ DEPRECATED()

ndn::lp::LocalControlHeaderFacade::DEPRECATED ( explicit   LocalControlHeaderFacadeTagHost &pkt)

§ hasIncomingFaceId()

bool ndn::lp::LocalControlHeaderFacade::hasIncomingFaceId ( ) const

Definition at line 38 of file tags.cpp.

References ndn::TagHost::getTag().

§ getIncomingFaceId()

uint64_t ndn::lp::LocalControlHeaderFacade::getIncomingFaceId ( ) const

Definition at line 44 of file tags.cpp.

References ndn::TagHost::getTag(), and ndn::nfd::INVALID_FACE_ID.

§ setIncomingFaceId()

void ndn::lp::LocalControlHeaderFacade::setIncomingFaceId ( uint64_t  incomingFaceId)

§ hasNextHopFaceId()

bool ndn::lp::LocalControlHeaderFacade::hasNextHopFaceId ( ) const

Definition at line 66 of file tags.cpp.

References ndn::TagHost::getTag().

§ getNextHopFaceId()

uint64_t ndn::lp::LocalControlHeaderFacade::getNextHopFaceId ( ) const

Definition at line 72 of file tags.cpp.

References ndn::TagHost::getTag(), and ndn::nfd::INVALID_FACE_ID.

§ setNextHopFaceId()

void ndn::lp::LocalControlHeaderFacade::setNextHopFaceId ( uint64_t  nextHopFaceId)

§ hasCachingPolicy()

bool ndn::lp::LocalControlHeaderFacade::hasCachingPolicy ( ) const

Definition at line 94 of file tags.cpp.

References ndn::TagHost::getTag().

§ getCachingPolicy()

LocalControlHeaderFacade::CachingPolicy ndn::lp::LocalControlHeaderFacade::getCachingPolicy ( ) const

Definition at line 100 of file tags.cpp.

References ndn::TagHost::getTag(), INVALID_POLICY, ndn::lp::NO_CACHE, and NO_CACHE.

§ setCachingPolicy()

void ndn::lp::LocalControlHeaderFacade::setCachingPolicy ( CachingPolicy  cachingPolicy)

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