A helper to make it easier to instantiate an ns3::NdnConsumer Application on a set of nodes. More...
#include <ndn-app-helper.h>
Public Member Functions | |
AppHelper (const std::string &prefix) | |
Create an NdnAppHelper to make it easier to work with Ndn apps. More... | |
void | SetPrefix (const std::string &prefix) |
Set the prefix consumer will be requesting. | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Helper function used to set the underlying application attributes. More... | |
ApplicationContainer | Install (NodeContainer c) |
Install an ns3::NdnConsumer on each node of the input container configured with all the attributes set with SetAttribute. More... | |
ApplicationContainer | Install (Ptr< Node > node) |
Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute. More... | |
ApplicationContainer | Install (std::string nodeName) |
Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute. More... | |
A helper to make it easier to instantiate an ns3::NdnConsumer Application on a set of nodes.
Definition at line 38 of file ndn-app-helper.h.
ns3::ndn::AppHelper::AppHelper | ( | const std::string & | prefix | ) |
Create an NdnAppHelper to make it easier to work with Ndn apps.
app | Class of the application |
Definition at line 36 of file ndn-app-helper.cc.
ApplicationContainer ns3::ndn::AppHelper::Install | ( | NodeContainer | c | ) |
Install an ns3::NdnConsumer on each node of the input container configured with all the attributes set with SetAttribute.
c | NodeContainer of the set of nodes on which an NdnConsumer will be installed. |
Definition at line 72 of file ndn-app-helper.cc.
Referenced by Install().
ApplicationContainer ns3::ndn::AppHelper::Install | ( | Ptr< Node > | node | ) |
Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute.
node | The node on which an NdnConsumer will be installed. |
Definition at line 54 of file ndn-app-helper.cc.
ApplicationContainer ns3::ndn::AppHelper::Install | ( | std::string | nodeName | ) |
Install an ns3::NdnConsumer on the node configured with all the attributes set with SetAttribute.
nodeName | The node on which an NdnConsumer will be installed. |
Definition at line 65 of file ndn-app-helper.cc.
References Install().
void ns3::ndn::AppHelper::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Helper function used to set the underlying application attributes.
name | the name of the application attribute to set |
value | the value of the application attribute to set |
Definition at line 48 of file ndn-app-helper.cc.