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::ndnSIM::Data Class Reference

Routines to serialize/deserialize Data packet in ndnSIM format. More...

#include <ndnsim.h>

Inheritance diagram for ns3::ndn::wire::ndnSIM::Data:
Collaboration diagram for ns3::ndn::wire::ndnSIM::Data:

Public Member Functions

 Data (Ptr< ndn::Data > data)
 
Ptr< ndn::DataGetData ()
 
virtual TypeId GetInstanceTypeId (void) const
 
virtual void Print (std::ostream &os) const
 
virtual uint32_t GetSerializedSize (void) const
 
virtual void Serialize (Buffer::Iterator start) const
 
virtual uint32_t Deserialize (Buffer::Iterator start)
 

Static Public Member Functions

static Ptr< Packet > ToWire (Ptr< const ndn::Data > data)
 
static Ptr< ndn::DataFromWire (Ptr< Packet > packet)
 
static TypeId GetTypeId (void)
 

Detailed Description

Routines to serialize/deserialize Data packet in ndnSIM format.

Only few important fields are actually implemented in the simulation

See also
http://ndnsim.net/new-packet-formats.html

Data ::= Signature Name Content

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Length | | |-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + ~ ~ ~ Signature ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Length | | |-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ~ ~ ~ Name ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Length | | |-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ~ ~ ~ Content ~ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Definition at line 135 of file ndnsim.h.


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