A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
three-gpp-http-helper.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 INRIA
3
* Copyright (c) 2013 Magister Solutions
4
*
5
* SPDX-License-Identifier: GPL-2.0-only
6
*
7
* Original work author (from packet-sink-helper.cc):
8
* - Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
9
*
10
* Converted to 3GPP HTTP web browsing traffic models by:
11
* - Budiarto Herman <budiarto.herman@magister.fi>
12
*
13
*/
14
15
#include "
three-gpp-http-helper.h
"
16
17
namespace
ns3
18
{
19
20
// 3GPP HTTP CLIENT HELPER /////////////////////////////////////////////////////////
21
22
ThreeGppHttpClientHelper::ThreeGppHttpClientHelper
(
const
Address
& address)
23
:
ApplicationHelper
(
"ns3::ThreeGppHttpClient"
)
24
{
25
m_factory
.
Set
(
"Remote"
,
AddressValue
(address));
26
}
27
28
// HTTP SERVER HELPER /////////////////////////////////////////////////////////
29
30
ThreeGppHttpServerHelper::ThreeGppHttpServerHelper
(
const
Address
& address)
31
:
ApplicationHelper
(
"ns3::ThreeGppHttpServer"
)
32
{
33
m_factory
.
Set
(
"Local"
,
AddressValue
(address));
34
}
35
36
}
// namespace ns3
ns3::Address
a polymophic address class
Definition
address.h:90
ns3::AddressValue
AttributeValue implementation for Address.
Definition
address.h:275
ns3::ApplicationHelper
A helper to make it easier to instantiate an application on a set of nodes.
Definition
application-helper.h:28
ns3::ApplicationHelper::m_factory
ObjectFactory m_factory
Object factory.
Definition
application-helper.h:129
ns3::ObjectFactory::Set
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
Definition
object-factory.h:213
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:22
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:30
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
three-gpp-http-helper.h
src
applications
helper
three-gpp-http-helper.cc
Generated on Sun Dec 1 2024 18:20:35 for ns-3 by
1.11.0