Helper to make it easier to instantiate an ThreeGppHttpServer on a set of nodes. More...
#include "three-gpp-http-helper.h"
Public Member Functions | |
ThreeGppHttpServerHelper (const Address &address) | |
Create a ThreeGppHttpServerHelper to make it easier to work with ThreeGppHttpServer applications. | |
ApplicationContainer | Install (const std::string &nodeName) const |
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes set with SetAttribute(). | |
ApplicationContainer | Install (NodeContainer c) const |
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes set with SetAttribute(). | |
ApplicationContainer | Install (Ptr< Node > node) const |
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes set with SetAttribute(). | |
void | SetAttribute (const std::string &name, const AttributeValue &value) |
Helper function used to set the underlying application attributes, but not the socket attributes. | |
Private Member Functions | |
Ptr< Application > | InstallPriv (Ptr< Node > node) const |
Private Attributes | |
ObjectFactory | m_factory |
Used to instantiate a ThreeGppHttpServer instance. | |
Helper to make it easier to instantiate an ThreeGppHttpServer on a set of nodes.
Definition at line 103 of file three-gpp-http-helper.h.
ns3::ThreeGppHttpServerHelper::ThreeGppHttpServerHelper | ( | const Address & | address | ) |
Create a ThreeGppHttpServerHelper to make it easier to work with ThreeGppHttpServer applications.
address | The address of the server. |
Definition at line 83 of file three-gpp-http-helper.cc.
References m_factory, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
ApplicationContainer ns3::ThreeGppHttpServerHelper::Install | ( | const std::string & | nodeName | ) | const |
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes set with SetAttribute().
nodeName | The name of the node on which an ThreeGppHttpServer will be installed. |
Definition at line 102 of file three-gpp-http-helper.cc.
References InstallPriv().
ApplicationContainer ns3::ThreeGppHttpServerHelper::Install | ( | NodeContainer | c | ) | const |
Install an ThreeGppHttpServer 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 ThreeGppHttpServer will be installed. |
Definition at line 109 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::ThreeGppHttpServerHelper::Install | ( | Ptr< Node > | node | ) | const |
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes set with SetAttribute().
node | The node on which an ThreeGppHttpServer will be installed. |
Definition at line 96 of file three-gpp-http-helper.cc.
References InstallPriv().
|
private |
node | The node on which an ThreeGppHttpServer will be installed. |
Definition at line 121 of file three-gpp-http-helper.cc.
References ns3::ObjectFactory::Create(), and m_factory.
Referenced by Install().
void ns3::ThreeGppHttpServerHelper::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 90 of file three-gpp-http-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
|
private |
Used to instantiate a ThreeGppHttpServer instance.
Definition at line 158 of file three-gpp-http-helper.h.
Referenced by ThreeGppHttpServerHelper(), InstallPriv(), and SetAttribute().