NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-link-control-helper.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef NDN_LINK_CONTROL_HELPER_H
21 #define NDN_LINK_CONTROL_HELPER_H
22 
23 #include "ns3/ndnSIM/model/ndn-common.hpp"
24 
25 #include "ns3/ptr.h"
26 #include "ns3/node.h"
27 
28 namespace ns3 {
29 namespace ndn {
30 
37 public:
49  static void
50  FailLink(Ptr<Node> node1, Ptr<Node> node2);
51 
65  static void
66  FailLinkByName(const std::string& node1, const std::string& node2);
67 
79  static void
80  UpLink(Ptr<Node> node1, Ptr<Node> node2);
81 
95  static void
96  UpLinkByName(const std::string& node1, const std::string& node2);
97 
98 private:
99  static void
100  setErrorRate(Ptr<Node> node1, Ptr<Node> node2, double errorRate);
101 }; // LinkControlHelper
102 
103 } // ndn
104 } // ns3
105 
106 #endif // NDN_LINK_CONTROL_HELPER_H
Copyright (c) 2011-2015 Regents of the University of California.
static void UpLinkByName(const std::string &node1, const std::string &node2)
Re-enable NDN link between two nodes.
static void UpLink(Ptr< Node > node1, Ptr< Node > node2)
Re-enable NDN link between two nodes.
static void FailLink(Ptr< Node > node1, Ptr< Node > node2)
Fail NDN link between two nodes.
Helper class to control the up or down statuss of an NDN link connecting two specific nodes.
Copyright (c) 2011-2015 Regents of the University of California.
static void FailLinkByName(const std::string &node1, const std::string &node2)
Fail NDN link between two nodes.