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

#include <ndn-ns3.hpp>

Static Public Member Functions

template<class T >
static std::shared_ptr< const T > FromPacket (Ptr< Packet > packet)
 
template<class T >
static Ptr< Packet > ToPacket (const T &pkt)
 
static uint32_t getPacketType (Ptr< const Packet > packet)
 

Detailed Description

Definition at line 30 of file ndn-ns3.hpp.

Member Function Documentation

template<class T >
template std::shared_ptr< const Data > ns3::ndn::Convert::FromPacket< Data > ( Ptr< Packet >  packet)
static

Definition at line 34 of file ndn-ns3.cpp.

References ns3::ndn::PacketHeader< Pkt >::getPacket().

template<class T >
template Ptr< Packet > ns3::ndn::Convert::ToPacket< Data > ( const T &  pkt)
static
uint32_t ns3::ndn::Convert::getPacketType ( Ptr< const Packet >  packet)
static

Definition at line 78 of file ndn-ns3.cpp.

References ndn::tlv::Data, and ndn::tlv::Interest.

Referenced by ns3::ndn::NetDeviceFace::sendData().


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