Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit time stamp. More...
#include "udp-client-server-helper.h"
Public Member Functions | |
UdpClientHelper () | |
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server. | |
UdpClientHelper (Address addr) | |
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server. | |
UdpClientHelper (Address ip, uint16_t port) | |
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server. | |
ApplicationContainer | Install (NodeContainer c) |
void | SetAttribute (std::string name, const AttributeValue &value) |
Record an attribute to be set in each Application after it is is created. | |
Private Attributes | |
ObjectFactory | m_factory |
Object factory. | |
Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit time stamp.
Definition at line 96 of file udp-client-server-helper.h.
ns3::UdpClientHelper::UdpClientHelper | ( | ) |
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
Definition at line 68 of file udp-client-server-helper.cc.
References ns3::UdpClient::GetTypeId(), m_factory, and ns3::ObjectFactory::SetTypeId().
ns3::UdpClientHelper::UdpClientHelper | ( | Address | ip, |
uint16_t | port | ||
) |
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
Use this variant with addresses that do not include a port value (e.g., Ipv4Address and Ipv6Address).
ip | The IP address of the remote UDP server |
port | The port number of the remote UDP server |
Definition at line 73 of file udp-client-server-helper.cc.
References ns3::UdpClient::GetTypeId(), m_factory, port, SetAttribute(), and ns3::ObjectFactory::SetTypeId().
ns3::UdpClientHelper::UdpClientHelper | ( | Address | addr | ) |
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
Use this variant with addresses that do include a port value (e.g., InetSocketAddress and Inet6SocketAddress).
addr | The address of the remote UDP server |
Definition at line 80 of file udp-client-server-helper.cc.
References ns3::UdpClient::GetTypeId(), m_factory, SetAttribute(), and ns3::ObjectFactory::SetTypeId().
ApplicationContainer ns3::UdpClientHelper::Install | ( | NodeContainer | c | ) |
c | the nodes |
Create one UDP client application on each of the input nodes
Definition at line 93 of file udp-client-server-helper.cc.
References ns3::ApplicationContainer::Add(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), ns3::NodeContainer::End(), and m_factory.
Referenced by LenaCqaFfMacSchedulerTestCase1::DoRun(), LenaCqaFfMacSchedulerTestCase2::DoRun(), ns3::LenaDeactivateBearerTestCase::DoRun(), LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), LenaFdTbfqFfMacSchedulerTestCase2::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LenaPssFfMacSchedulerTestCase1::DoRun(), LenaPssFfMacSchedulerTestCase2::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), LenaTdTbfqFfMacSchedulerTestCase2::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), and LteX2HandoverTestCase::DoRun().
void ns3::UdpClientHelper::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Record an attribute to be set in each Application after it is is created.
name | the name of the attribute to set |
value | the value of the attribute to set |
Definition at line 87 of file udp-client-server-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
Referenced by UdpClientHelper(), LenaCqaFfMacSchedulerTestCase1::DoRun(), LenaCqaFfMacSchedulerTestCase2::DoRun(), ns3::LenaDeactivateBearerTestCase::DoRun(), LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), LenaFdTbfqFfMacSchedulerTestCase2::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LenaPssFfMacSchedulerTestCase1::DoRun(), LenaPssFfMacSchedulerTestCase2::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), and LenaTdTbfqFfMacSchedulerTestCase2::DoRun().
|
private |
Object factory.
Definition at line 146 of file udp-client-server-helper.h.
Referenced by UdpClientHelper(), Install(), and SetAttribute().