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 Class Reference

Helper to encode ndnSIM wire elements. More...

#include <wire-ndnsim.h>

Public Types

enum  Selectors { SelectorExclude = 0x01 }
 
enum  ExcludeTypes { ExcludeNameType = 0x01, ExcludeAnyType = 0x02 }
 

Static Public Member Functions

static size_t SerializeName (Buffer::Iterator &start, const Name &name)
 Append Name in ndnSIM encoding. More...
 
static size_t SerializedSizeName (const Name &name)
 Estimate size of Name in ndnSIM encoding. More...
 
static Ptr< NameDeserializeName (Buffer::Iterator &start)
 Deserialize Name from ndnSIM encodeing. More...
 
static size_t SerializeExclude (Buffer::Iterator &start, const Exclude &exclude)
 Append Exclude in ndnSIM encoding. More...
 
static size_t SerializedSizeExclude (const Exclude &exclude)
 Estimate size of Exclude in ndnSIM encoding. More...
 
static Ptr< ExcludeDeserializeExclude (Buffer::Iterator &start)
 Deserialize Exclude from ndnSIM encodeing. More...
 

Detailed Description

Helper to encode ndnSIM wire elements.

Definition at line 29 of file wire-ndnsim.h.

Member Function Documentation

Ptr< Exclude > ns3::ndn::wire::NdnSim::DeserializeExclude ( Buffer::Iterator &  start)
static

Deserialize Exclude from ndnSIM encodeing.

Parameters
startBuffer that stores serialized Interest
excludeExclude object

Definition at line 125 of file wire-ndnsim.cc.

Ptr< Name > ns3::ndn::wire::NdnSim::DeserializeName ( Buffer::Iterator &  start)
static

Deserialize Name from ndnSIM encodeing.

Parameters
startBuffer that stores serialized Interest
nameName object

Definition at line 57 of file wire-ndnsim.cc.

size_t ns3::ndn::wire::NdnSim::SerializedSizeExclude ( const Exclude exclude)
static

Estimate size of Exclude in ndnSIM encoding.

Parameters
excludeconstant reference to Exclude object
Returns
estimated length

Definition at line 103 of file wire-ndnsim.cc.

References ns3::ndn::Exclude::rbegin(), and ns3::ndn::Exclude::rend().

size_t ns3::ndn::wire::NdnSim::SerializedSizeName ( const Name name)
static

Estimate size of Name in ndnSIM encoding.

Parameters
nameconstant reference to Name object
Returns
estimated length

Definition at line 41 of file wire-ndnsim.cc.

References ns3::ndn::Name::begin(), and ns3::ndn::Name::end().

size_t ns3::ndn::wire::NdnSim::SerializeExclude ( Buffer::Iterator &  start,
const Exclude exclude 
)
static

Append Exclude in ndnSIM encoding.

Parameters
startBuffer to store serialized Interest
excludeconstant reference to Exclude object
Returns
written length

Definition at line 78 of file wire-ndnsim.cc.

References ns3::ndn::Exclude::rbegin(), and ns3::ndn::Exclude::rend().

size_t ns3::ndn::wire::NdnSim::SerializeName ( Buffer::Iterator &  start,
const Name name 
)
static

Append Name in ndnSIM encoding.

Parameters
startBuffer to store serialized Interest
nameconstant reference to Name object
Returns
written length

Definition at line 23 of file wire-ndnsim.cc.

References ns3::ndn::Name::begin(), and ns3::ndn::Name::end().


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