A Discrete-Event Network Simulator
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
16
17namespace ns3
18{
19
20// 3GPP HTTP CLIENT HELPER /////////////////////////////////////////////////////////
21
23 : ApplicationHelper("ns3::ThreeGppHttpClient")
24{
25 m_factory.Set("RemoteServerAddress", AddressValue(address));
26}
27
28// HTTP SERVER HELPER /////////////////////////////////////////////////////////
29
31 : ApplicationHelper("ns3::ThreeGppHttpServer")
32{
33 m_factory.Set("LocalAddress", AddressValue(address));
34}
35
36} // namespace ns3
a polymophic address class
Definition address.h:90
A helper to make it easier to instantiate an application on a set of nodes.
ObjectFactory m_factory
Object factory.
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
ThreeGppHttpClientHelper(const Address &address)
Create a ThreeGppHttpClientHelper to make it easier to work with ThreeGppHttpClient applications.
ThreeGppHttpServerHelper(const Address &address)
Create a ThreeGppHttpServerHelper to make it easier to work with ThreeGppHttpServer applications.
Every class exported by the ns3 library is enclosed in the ns3 namespace.