A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::UdpTraceClientHelper Class Reference

#include <udp-client-server-helper.h>

Public Member Functions

 UdpTraceClientHelper ()
 
 UdpTraceClientHelper (Address ip, uint16_t port, std::string filename)
 
 UdpTraceClientHelper (Ipv4Address ip, uint16_t port, std::string filename)
 
 UdpTraceClientHelper (Ipv6Address ip, uint16_t port, std::string filename)
 
ApplicationContainer Install (NodeContainer c)
 
void SetAttribute (std::string name, const AttributeValue &value)
 

Private Attributes

ObjectFactory m_factory
 

Detailed Description

Create udpTraceClient application which sends udp packets based on a trace file of an MPEG4 stream. Trace files could be downloaded form : http://www.tkn.tu-berlin.de/research/trace/ltvt.html (the 2 first lines of the file should be removed) A valid trace file is a file with 4 columns: -1- the first one represents the frame index -2- the second one indicates the type of the frame: I, P or B -3- the third one indicates the time on which the frame was generated by the encoder -4- the fourth one indicates the frame size in byte

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

Constructor & Destructor Documentation

ns3::UdpTraceClientHelper::UdpTraceClientHelper ( )

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

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

ns3::UdpTraceClientHelper::UdpTraceClientHelper ( Address  ip,
uint16_t  port,
std::string  filename 
)

Create UdpTraceClientHelper 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
filenamethe file from which packet traces will be loaded

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

References SetAttribute(), and ns3::ObjectFactory::SetTypeId().

Member Function Documentation

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

Create one udp trace client application on each of the input nodes

Returns
the applications created, one application per input node.

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

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

void ns3::UdpTraceClientHelper::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 141 of file udp-client-server-helper.cc.

References ns3::ObjectFactory::Set().

Referenced by UdpTraceClientServerTestCase::DoRun(), and UdpTraceClientHelper().


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