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... | |
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.
|
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
node1 | one node |
node2 | another node |
Definition at line 40 of file ndn-link-control-helper.cc.
References ns3::ndn::NetDeviceFace::GetNetDevice().
Referenced by FailLinkByName().
|
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
node1 | one node's name |
node2 | another node's name |
Definition at line 83 of file ndn-link-control-helper.cc.
References FailLink().
|
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
node1 | one node |
node2 | another node |
Definition at line 89 of file ndn-link-control-helper.cc.
References ns3::ndn::NetDeviceFace::GetNetDevice().
Referenced by UpLinkByName().
|
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
node1 | one node's name |
node2 | another node's name |
Definition at line 133 of file ndn-link-control-helper.cc.
References UpLink().