A Discrete-Event Network Simulator
API
three-gpp-http-helper.h
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2008 INRIA
4  * Copyright (c) 2013 Magister Solutions
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Original work author (from packet-sink-helper.cc):
20  * - Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
21  *
22  * Converted to HTTP web browsing traffic models by:
23  * - Budiarto Herman <budiarto.herman@magister.fi>
24  *
25  */
26 
27 #ifndef THREE_GPP_HTTP_HELPER_H
28 #define THREE_GPP_HTTP_HELPER_H
29 
30 #include <ns3/object-factory.h>
31 #include <ns3/node-container.h>
32 #include <ns3/application-container.h>
33 
34 
35 namespace ns3 {
36 
37 
43 {
44 public:
51 
58  void SetAttribute (const std::string &name,
59  const AttributeValue &value);
60 
69 
77 
85  ApplicationContainer Install (const std::string &nodeName) const;
86 
87 private:
96 
99 
100 }; // end of `class ThreeGppHttpClientHelper`
101 
102 
103 
109 {
110 public:
117 
124  void SetAttribute (const std::string &name,
125  const AttributeValue &value);
126 
135 
143 
151  ApplicationContainer Install (const std::string &nodeName) const;
152 
153 private:
162 
165 
166 }; // end of `class ThreeGppHttpServerHelper`
167 
168 
169 } // end of `namespace ns3`
170 
171 
172 #endif /* THREE_GPP_HTTP_HELPER_H */
ns3::ThreeGppHttpServerHelper::SetAttribute
void SetAttribute(const std::string &name, const AttributeValue &value)
Helper function used to set the underlying application attributes, but not the socket attributes.
Definition: three-gpp-http-helper.cc:92
ns3::ThreeGppHttpServerHelper::Install
ApplicationContainer Install(NodeContainer c) const
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes ...
Definition: three-gpp-http-helper.cc:112
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ThreeGppHttpServerHelper
Helper to make it easier to instantiate an ThreeGppHttpServer on a set of nodes.
Definition: three-gpp-http-helper.h:109
ns3::ThreeGppHttpClientHelper::SetAttribute
void SetAttribute(const std::string &name, const AttributeValue &value)
Helper function used to set the underlying application attributes, but not the socket attributes.
Definition: three-gpp-http-helper.cc:42
ns3::AttributeValue
Hold a value for an Attribute.
Definition: attribute.h:69
ns3::ThreeGppHttpClientHelper::Install
ApplicationContainer Install(NodeContainer c) const
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes s...
Definition: three-gpp-http-helper.cc:62
ns3::ThreeGppHttpServerHelper::ThreeGppHttpServerHelper
ThreeGppHttpServerHelper(const Address &address)
Create a ThreeGppHttpServerHelper to make it easier to work with ThreeGppHttpServer applications.
Definition: three-gpp-http-helper.cc:85
ns3::Ptr< Node >
ns3::ThreeGppHttpClientHelper::InstallPriv
Ptr< Application > InstallPriv(Ptr< Node > node) const
Definition: three-gpp-http-helper.cc:74
ns3::Address
a polymophic address class
Definition: address.h:91
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition: object-factory.h:48
first.address
address
Definition: first.py:44
ns3::ThreeGppHttpClientHelper::ThreeGppHttpClientHelper
ThreeGppHttpClientHelper(const Address &address)
Create a ThreeGppHttpClientHelper to make it easier to work with ThreeGppHttpClient applications.
Definition: three-gpp-http-helper.cc:35
ns3::ThreeGppHttpServerHelper::InstallPriv
Ptr< Application > InstallPriv(Ptr< Node > node) const
Definition: three-gpp-http-helper.cc:124
ns3::ApplicationContainer
holds a vector of ns3::Application pointers.
Definition: application-container.h:43
ns3::NodeContainer
keep track of a set of node pointers.
Definition: node-container.h:39
ns3::ThreeGppHttpServerHelper::m_factory
ObjectFactory m_factory
Used to instantiate a ThreeGppHttpServer instance.
Definition: three-gpp-http-helper.h:164
ns3::ThreeGppHttpClientHelper
Helper to make it easier to instantiate an ThreeGppHttpClient on a set of nodes.
Definition: three-gpp-http-helper.h:43
ns3::ThreeGppHttpClientHelper::m_factory
ObjectFactory m_factory
Used to instantiate an ThreeGppHttpClient instance.
Definition: three-gpp-http-helper.h:98