A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
40
class
ThreeGppHttpClientHelper
41
{
42
public
:
48
ThreeGppHttpClientHelper
(
const
Address
&
address
);
49
56
void
SetAttribute
(
const
std::string& name,
const
AttributeValue
& value);
57
65
ApplicationContainer
Install
(
NodeContainer
c)
const
;
66
73
ApplicationContainer
Install
(
Ptr<Node>
node)
const
;
74
82
ApplicationContainer
Install
(
const
std::string& nodeName)
const
;
83
84
private
:
92
Ptr<Application>
InstallPriv
(
Ptr<Node>
node)
const
;
93
95
ObjectFactory
m_factory
;
96
97
};
// end of `class ThreeGppHttpClientHelper`
98
103
class
ThreeGppHttpServerHelper
104
{
105
public
:
111
ThreeGppHttpServerHelper
(
const
Address
&
address
);
112
119
void
SetAttribute
(
const
std::string& name,
const
AttributeValue
& value);
120
128
ApplicationContainer
Install
(
NodeContainer
c)
const
;
129
136
ApplicationContainer
Install
(
Ptr<Node>
node)
const
;
137
145
ApplicationContainer
Install
(
const
std::string& nodeName)
const
;
146
147
private
:
155
Ptr<Application>
InstallPriv
(
Ptr<Node>
node)
const
;
156
158
ObjectFactory
m_factory
;
159
160
};
// end of `class ThreeGppHttpServerHelper`
161
162
}
// namespace ns3
163
164
#endif
/* THREE_GPP_HTTP_HELPER_H */
ns3::Address
a polymophic address class
Definition:
address.h:101
ns3::ApplicationContainer
holds a vector of ns3::Application pointers.
Definition:
application-container.h:44
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:70
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:40
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:48
ns3::Ptr< Node >
ns3::ThreeGppHttpClientHelper
Helper to make it easier to instantiate an ThreeGppHttpClient on a set of nodes.
Definition:
three-gpp-http-helper.h:41
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::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:61
ns3::ThreeGppHttpClientHelper::m_factory
ObjectFactory m_factory
Used to instantiate an ThreeGppHttpClient instance.
Definition:
three-gpp-http-helper.h:95
ns3::ThreeGppHttpClientHelper::InstallPriv
Ptr< Application > InstallPriv(Ptr< Node > node) const
Definition:
three-gpp-http-helper.cc:73
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::ThreeGppHttpServerHelper
Helper to make it easier to instantiate an ThreeGppHttpServer on a set of nodes.
Definition:
three-gpp-http-helper.h:104
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:83
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:90
ns3::ThreeGppHttpServerHelper::m_factory
ObjectFactory m_factory
Used to instantiate a ThreeGppHttpServer instance.
Definition:
three-gpp-http-helper.h:158
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:109
ns3::ThreeGppHttpServerHelper::InstallPriv
Ptr< Application > InstallPriv(Ptr< Node > node) const
Definition:
three-gpp-http-helper.cc:121
first.address
address
Definition:
first.py:47
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
applications
helper
three-gpp-http-helper.h
Generated on Sun Mar 3 2024 17:10:53 for ns-3 by
1.9.1