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... | |
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.
|
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 94 of file ndn-link-control-helper.cpp.
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 100 of file ndn-link-control-helper.cpp.
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 106 of file ndn-link-control-helper.cpp.
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 112 of file ndn-link-control-helper.cpp.
References UpLink().