Helper to make it easier to instantiate an ThreeGppHttpClient on a set of nodes. More...
#include "three-gpp-http-helper.h"
Public Member Functions | |
ThreeGppHttpClientHelper (const Address &address) | |
Create a ThreeGppHttpClientHelper to make it easier to work with ThreeGppHttpClient applications. More... | |
ApplicationContainer | Install (NodeContainer c) const |
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes set with SetAttribute(). More... | |
ApplicationContainer | Install (Ptr< Node > node) const |
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes set with SetAttribute(). More... | |
ApplicationContainer | Install (const std::string &nodeName) const |
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes set with SetAttribute(). More... | |
void | SetAttribute (const std::string &name, const AttributeValue &value) |
Helper function used to set the underlying application attributes, but not the socket attributes. More... | |
Private Member Functions | |
Ptr< Application > | InstallPriv (Ptr< Node > node) const |
Private Attributes | |
ObjectFactory | m_factory |
Used to instantiate an ThreeGppHttpClient instance. More... | |
Helper to make it easier to instantiate an ThreeGppHttpClient on a set of nodes.
Definition at line 42 of file three-gpp-http-helper.h.
ns3::ThreeGppHttpClientHelper::ThreeGppHttpClientHelper | ( | const Address & | address | ) |
Create a ThreeGppHttpClientHelper to make it easier to work with ThreeGppHttpClient applications.
address | The address of the remote server node to send traffic to. |
Definition at line 35 of file three-gpp-http-helper.cc.
References first::address, m_factory, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
ApplicationContainer ns3::ThreeGppHttpClientHelper::Install | ( | NodeContainer | c | ) | const |
Install a ThreeGppHttpClient 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 ThreeGppHttpClient will be installed. |
Definition at line 62 of file three-gpp-http-helper.cc.
References ns3::ApplicationContainer::Add(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and InstallPriv().
Referenced by ThreeGppHttpObjectTestCase::DoRun().
ApplicationContainer ns3::ThreeGppHttpClientHelper::Install | ( | Ptr< Node > | node | ) | const |
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes set with SetAttribute().
node | The node on which an ThreeGppHttpClient will be installed. |
Definition at line 49 of file three-gpp-http-helper.cc.
References InstallPriv().
ApplicationContainer ns3::ThreeGppHttpClientHelper::Install | ( | const std::string & | nodeName | ) | const |
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes set with SetAttribute().
nodeName | The name of the node on which an ThreeGppHttpClient will be installed. |
Definition at line 55 of file three-gpp-http-helper.cc.
References InstallPriv().
|
private |
node | The node on which an ThreeGppHttpClient will be installed. |
Definition at line 74 of file three-gpp-http-helper.cc.
References ns3::Node::AddApplication(), ns3::ObjectFactory::Create(), and m_factory.
Referenced by Install().
void ns3::ThreeGppHttpClientHelper::SetAttribute | ( | const std::string & | name, |
const AttributeValue & | value | ||
) |
Helper function used to set the underlying application attributes, but not the socket attributes.
name | The name of the application attribute to set. |
value | The value of the application attribute to set. |
Definition at line 42 of file three-gpp-http-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
|
private |
Used to instantiate an ThreeGppHttpClient instance.
Definition at line 98 of file three-gpp-http-helper.h.
Referenced by InstallPriv(), SetAttribute(), and ThreeGppHttpClientHelper().