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. More... | |
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(). More... | |
ApplicationContainer | Install (NodeContainer c) const |
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes set with SetAttribute(). More... | |
ApplicationContainer | Install (Ptr< Node > node) const |
Install an ThreeGppHttpServer 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 a ThreeGppHttpServer instance. More... | |
Helper to make it easier to instantiate an ThreeGppHttpServer on a set of nodes.
Definition at line 108 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 85 of file three-gpp-http-helper.cc.
References first::address, 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 105 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 112 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 99 of file three-gpp-http-helper.cc.
References InstallPriv().
|
private |
node | The node on which an ThreeGppHttpServer will be installed. |
Definition at line 124 of file three-gpp-http-helper.cc.
References ns3::Node::AddApplication(), 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 92 of file three-gpp-http-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
|
private |
Used to instantiate a ThreeGppHttpServer instance.
Definition at line 164 of file three-gpp-http-helper.h.
Referenced by ThreeGppHttpServerHelper(), InstallPriv(), and SetAttribute().