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 */
a polymophic address class
Definition: address.h:91
holds a vector of ns3::Application pointers.
Hold a value for an Attribute.
Definition: attribute.h:69
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:44
Every class exported by the ns3 library is enclosed in the ns3 namespace.