NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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.hpp>

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 36 of file ndn-link-control-helper.hpp.

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 90 of file ndn-link-control-helper.cpp.

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 96 of file ndn-link-control-helper.cpp.

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 102 of file ndn-link-control-helper.cpp.

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 108 of file ndn-link-control-helper.cpp.

References UpLink().


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