A Discrete-Event Network Simulator
API
three-gpp-http-helper.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 INRIA
3  * Copyright (c) 2013 Magister Solutions
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Original work author (from packet-sink-helper.cc):
19  * - Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20  *
21  * Converted to HTTP web browsing traffic models by:
22  * - Budiarto Herman <budiarto.herman@magister.fi>
23  *
24  */
25 
26 #ifndef THREE_GPP_HTTP_HELPER_H
27 #define THREE_GPP_HTTP_HELPER_H
28 
29 #include <ns3/application-container.h>
30 #include <ns3/node-container.h>
31 #include <ns3/object-factory.h>
32 
33 namespace ns3
34 {
35 
41 {
42  public:
49 
56  void SetAttribute(const std::string& name, const AttributeValue& value);
57 
66 
74 
82  ApplicationContainer Install(const std::string& nodeName) const;
83 
84  private:
93 
96 
97 }; // end of `class ThreeGppHttpClientHelper`
98 
104 {
105  public:
112 
119  void SetAttribute(const std::string& name, const AttributeValue& value);
120 
129 
137 
145  ApplicationContainer Install(const std::string& nodeName) const;
146 
147  private:
156 
159 
160 }; // end of `class ThreeGppHttpServerHelper`
161 
162 } // namespace ns3
163 
164 #endif /* THREE_GPP_HTTP_HELPER_H */
a polymophic address class
Definition: address.h:101
holds a vector of ns3::Application pointers.
Hold a value for an Attribute.
Definition: attribute.h:70
keep track of a set of node pointers.
Instantiate subclasses of ns3::Object.
Helper to make it easier to instantiate an ThreeGppHttpClient on a set of nodes.
ThreeGppHttpClientHelper(const Address &address)
Create a ThreeGppHttpClientHelper to make it easier to work with ThreeGppHttpClient applications.
ApplicationContainer Install(NodeContainer c) const
Install a ThreeGppHttpClient on each node of the input container configured with all the attributes s...
ObjectFactory m_factory
Used to instantiate an ThreeGppHttpClient instance.
Ptr< Application > InstallPriv(Ptr< Node > node) const
void SetAttribute(const std::string &name, const AttributeValue &value)
Helper function used to set the underlying application attributes, but not the socket attributes.
Helper to make it easier to instantiate an ThreeGppHttpServer on a set of nodes.
ThreeGppHttpServerHelper(const Address &address)
Create a ThreeGppHttpServerHelper to make it easier to work with ThreeGppHttpServer applications.
void SetAttribute(const std::string &name, const AttributeValue &value)
Helper function used to set the underlying application attributes, but not the socket attributes.
ObjectFactory m_factory
Used to instantiate a ThreeGppHttpServer instance.
ApplicationContainer Install(NodeContainer c) const
Install an ThreeGppHttpServer on each node of the input container configured with all the attributes ...
Ptr< Application > InstallPriv(Ptr< Node > node) const
address
Definition: first.py:47
Every class exported by the ns3 library is enclosed in the ns3 namespace.