A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ()
 UdpClientHelper (Ipv4Address ip, uint16_t port)
 UdpClientHelper (Ipv6Address ip, uint16_t port)
 UdpClientHelper (Address ip, uint16_t port)
ApplicationContainer Install (NodeContainer c)
void SetAttribute (std::string name, const AttributeValue &value)

Private Attributes

ObjectFactory m_factory

Detailed Description

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

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

Constructor & Destructor Documentation

ns3::UdpClientHelper::UdpClientHelper ( )

Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server.

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

ns3::UdpClientHelper::UdpClientHelper ( Ipv4Address  ip,
uint16_t  port 
)

Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server.

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

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

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

+ Here is the call graph for this function:

ns3::UdpClientHelper::UdpClientHelper ( Ipv6Address  ip,
uint16_t  port 
)

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

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

+ Here is the call graph for this function:

ns3::UdpClientHelper::UdpClientHelper ( Address  ip,
uint16_t  port 
)

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

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

+ Here is the call graph for this function:

Member Function Documentation

ApplicationContainer ns3::UdpClientHelper::Install ( NodeContainer  c)
Parameters
cthe nodes

Create one udp client application on each of the input nodes

Returns
the applications created, one application per input node.

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

References ns3::ApplicationContainer::Add(), ns3::Node::AddApplication(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), ns3::NodeContainer::End(), and m_factory.

Referenced by Ns3WimaxSchedulingTestCase::DoRunOnce(), Ns3WimaxSFTypeTestCase::DoRunOnce(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Record an attribute to be set in each Application after it is is created.

Parameters
namethe name of the attribute to set
valuethe value of the attribute to set

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

References m_factory, and ns3::ObjectFactory::Set().

Referenced by UdpClientServerTestCase::DoRun(), Ns3WimaxSchedulingTestCase::DoRunOnce(), Ns3WimaxSFTypeTestCase::DoRunOnce(), main(), and UdpClientHelper().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

ObjectFactory ns3::UdpClientHelper::m_factory
private

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

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


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