NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::wire::CcnbParser::Dtag Class Reference

Class to represent DTAG ccnb-encoded node. More...

#include <dtag.h>

Inheritance diagram for ns3::ndn::wire::CcnbParser::Dtag:
Collaboration diagram for ns3::ndn::wire::CcnbParser::Dtag:

Public Member Functions

 Dtag (Buffer::Iterator &start, uint32_t dtag)
 Constructor that actually parsed ccnb-encoded DTAG block. More...
 
virtual void accept (VoidNoArguVisitor &v)
 Accept visitor void(*)()
 
virtual void accept (VoidVisitor &v, boost::any param)
 Accept visitor void(*)(boost::any)
 
virtual boost::any accept (NoArguVisitor &v)
 Accept visitor boost::any(*)()
 
virtual boost::any accept (Visitor &v, boost::any param)
 Accept visitor boost::any(*)(boost::any)
 

Public Attributes

uint32_t m_dtag
 Dictionary code for DTAG.
 
- Public Attributes inherited from ns3::ndn::wire::CcnbParser::BaseTag
std::list< Ptr< Block > > m_attrs
 List of attributes, associated with this tag.
 
std::list< Ptr< Block > > m_nestedTags
 List of nested tags.
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::ndn::wire::CcnbParser::Block
static Ptr< BlockParseBlock (Buffer::Iterator &start, bool dontParseBlock=false)
 Parsing stream (recursively) and creating a parsed BLOCK object. More...
 
- Protected Member Functions inherited from ns3::ndn::wire::CcnbParser::BaseTag
 BaseTag ()
 Default constructor.
 

Detailed Description

Class to represent DTAG ccnb-encoded node.

See also
http://www.ccnx.org/releases/latest/doc/technical/BinaryEncoding.html

Definition at line 37 of file dtag.h.

Constructor & Destructor Documentation

ns3::ndn::wire::CcnbParser::Dtag::Dtag ( Buffer::Iterator &  start,
uint32_t  dtag 
)

Constructor that actually parsed ccnb-encoded DTAG block.

Parameters
startbuffer iterator pointing to the first nesting block or closing tag
dtagdictionary code of DTAG (extracted from the value field)

DTAG parsing is slightly hacked to provide memory optimization for NS-3 simulations. Parsing will be stopped after encountering "Content" dtag. Actual content (including virtual payload) will be stored in Packet buffer

See also
http://www.ccnx.org/releases/latest/doc/technical/BinaryEncoding.html

Hack

Stop processing after encountering "Content" dtag. Actual content (including virtual payload) will be stored in Packet buffer

Definition at line 31 of file dtag.cc.


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