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

Helper class to control the up or down statuss of an NDN link connecting two specific nodes. More...

#include <ndn-link-control-helper.h>

Static Public Member Functions

static void FailLink (Ptr< Node > node1, Ptr< Node > node2)
 Fail NDN link between two nodes. More...
 
static void FailLinkByName (const std::string &node1, const std::string &node2)
 Fail NDN link between two nodes. More...
 
static void UpLink (Ptr< Node > node1, Ptr< Node > node2)
 Re-enable NDN link between two nodes. More...
 
static void UpLinkByName (const std::string &node1, const std::string &node2)
 Re-enable NDN link between two nodes. More...
 

Detailed Description

Helper class to control the up or down statuss of an NDN link connecting two specific nodes.

Definition at line 35 of file ndn-link-control-helper.h.

Member Function Documentation

void ns3::ndn::LinkControlHelper::FailLink ( Ptr< Node >  node1,
Ptr< Node >  node2 
)
static

Fail NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to DOWN state

Note that only PointToPointChannels are supported by this helper method

Parameters
node1one node
node2another node

Definition at line 40 of file ndn-link-control-helper.cc.

References ns3::ndn::NetDeviceFace::GetNetDevice().

Referenced by FailLinkByName().

void ns3::ndn::LinkControlHelper::FailLinkByName ( const std::string &  node1,
const std::string &  node2 
)
static

Fail NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to DOWN state

Note that only PointToPointChannels are supported by this helper method

This variant uses node names registered by Names class

Parameters
node1one node's name
node2another node's name

Definition at line 83 of file ndn-link-control-helper.cc.

References FailLink().

void ns3::ndn::LinkControlHelper::UpLink ( Ptr< Node >  node1,
Ptr< Node >  node2 
)
static

Re-enable NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to UP state

Note that only PointToPointChannels are supported by this helper method

Parameters
node1one node
node2another node

Definition at line 89 of file ndn-link-control-helper.cc.

References ns3::ndn::NetDeviceFace::GetNetDevice().

Referenced by UpLinkByName().

void ns3::ndn::LinkControlHelper::UpLinkByName ( const std::string &  node1,
const std::string &  node2 
)
static

Re-enable NDN link between two nodes.

The helper will attempt to find NDN link between node1 and node2 and set NDN face to UP state

Note that only PointToPointChannels are supported by this helper method

This variant uses node names registered by Names class

Parameters
node1one node's name
node2another node's name

Definition at line 133 of file ndn-link-control-helper.cc.

References UpLink().


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