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

Helper for NDN IP-based face creation. More...

#include <ndn-ip-faces-helper.h>

Static Public Member Functions

static void Install (Ptr< Node > node)
 Install IpFaceStack interface on a node. More...
 
static void Install (const NodeContainer &nodes)
 Install IpFaceStack interface on nodes. More...
 
static void InstallAll ()
 Install IpFaceStack interface on all nodes.
 
static void CreateTcpFace (const Time &when, Ptr< Node > node, Ipv4Address address, const std::string &prefix, int16_t metric=1)
 Create TCP face. More...
 
static void CreateUdpFace (const Time &when, Ptr< Node > node, Ipv4Address address, const std::string &prefix, int16_t metric=1)
 Create TCP face.
 

Detailed Description

Helper for NDN IP-based face creation.

Definition at line 41 of file ndn-ip-faces-helper.h.

Member Function Documentation

void ns3::ndn::IpFacesHelper::CreateTcpFace ( const Time &  when,
Ptr< Node >  node,
Ipv4Address  address,
const std::string &  prefix,
int16_t  metric = 1 
)
static

Create TCP face.

Parameters
whenTime when to create face (use `Seconds (0)' if face should be created right away)
nodeNode to add TCP face (will initiate connection)
addressIP address to connect (using standard 9695 port)
prefixPrefix to associate with the face
metricMetric that will be assigned to the face

This call schedules connection initiation and after successful connection it will add new face to NDN stack and add the requested route

If face has been already created before (same IP address), then this call will simply update FIB with requested prefix

Definition at line 103 of file ndn-ip-faces-helper.cc.

void ns3::ndn::IpFacesHelper::Install ( Ptr< Node >  node)
static

Install IpFaceStack interface on a node.

Parameters
nodeNode to install IpFaceStack interface

Definition at line 40 of file ndn-ip-faces-helper.cc.

void ns3::ndn::IpFacesHelper::Install ( const NodeContainer &  nodes)
static

Install IpFaceStack interface on nodes.

Parameters
nodesNodeContainer to install IpFaceStack interface

Definition at line 47 of file ndn-ip-faces-helper.cc.


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