A Discrete-Event Network Simulator
API
ns3::UdpClientHelper Class Reference

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"

+ Collaboration diagram for ns3::UdpClientHelper:

Public Member Functions

 UdpClientHelper ()
 Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server. More...
 
 UdpClientHelper (Address addr)
 Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server. More...
 
 UdpClientHelper (Address ip, uint16_t port)
 Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server. More...
 
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. More...
 

Private Attributes

ObjectFactory m_factory
 Object factory. More...
 

Detailed Description

Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit time stamp.

Definition at line 93 of file udp-client-server-helper.h.

Constructor & Destructor Documentation

◆ UdpClientHelper() [1/3]

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().

+ Here is the call graph for this function:

◆ UdpClientHelper() [2/3]

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).

Parameters
ipThe IP address of the remote UDP server
portThe port number of the remote UDP server

Definition at line 73 of file udp-client-server-helper.cc.

References first::address, ns3::UdpClient::GetTypeId(), m_factory, port, SetAttribute(), and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

◆ UdpClientHelper() [3/3]

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).

Parameters
addrThe address of the remote UDP server

Definition at line 80 of file udp-client-server-helper.cc.

References first::address, ns3::UdpClient::GetTypeId(), m_factory, SetAttribute(), and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

Member Function Documentation

◆ Install()

◆ SetAttribute()

void ns3::UdpClientHelper::SetAttribute ( std::string  name,
const AttributeValue value 
)

Member Data Documentation

◆ m_factory

ObjectFactory ns3::UdpClientHelper::m_factory
private

Object factory.

Definition at line 144 of file udp-client-server-helper.h.

Referenced by UdpClientHelper(), Install(), and SetAttribute().


The documentation for this class was generated from the following files: