Create UdpTraceClient application which sends UDP packets based on a trace file of an MPEG4 stream. More...
#include <udp-client-server-helper.h>
Collaboration diagram for ns3::UdpTraceClientHelper:Public Member Functions | |
| UdpTraceClientHelper () | |
| Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with udp-client-server. More... | |
| 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. More... | |
| UdpTraceClientHelper (Ipv4Address 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. More... | |
| UdpTraceClientHelper (Ipv6Address 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. 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... | |
Create UdpTraceClient application which sends UDP packets based on a trace file of an MPEG4 stream.
Trace files could be downloaded form : http://www2.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:
Definition at line 164 of file udp-client-server-helper.h.
| 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.
| ip | The IP address of the remote UDP server |
| port | The port number of the remote UDP server |
| filename | the file from which packet traces will be loaded |
Definition at line 116 of file udp-client-server-helper.cc.
References ns3::UdpTraceClient::GetTypeId(), m_factory, SetAttribute(), and ns3::ObjectFactory::SetTypeId().
Here is the call graph for this function:| ns3::UdpTraceClientHelper::UdpTraceClientHelper | ( | Ipv4Address | 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.
| ip | The IPv4 address of the remote UDP server |
| port | The port number of the remote UDP server |
| filename | the file from which packet traces will be loaded |
Definition at line 124 of file udp-client-server-helper.cc.
References ns3::UdpTraceClient::GetTypeId(), m_factory, SetAttribute(), and ns3::ObjectFactory::SetTypeId().
Here is the call graph for this function:| ns3::UdpTraceClientHelper::UdpTraceClientHelper | ( | Ipv6Address | 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.
| ip | The IPv6 address of the remote UDP server |
| port | The port number of the remote UDP server |
| filename | the file from which packet traces will be loaded |
Definition at line 132 of file udp-client-server-helper.cc.
References ns3::UdpTraceClient::GetTypeId(), m_factory, SetAttribute(), and ns3::ObjectFactory::SetTypeId().
Here is the call graph for this function:| ApplicationContainer ns3::UdpTraceClientHelper::Install | ( | NodeContainer | c | ) |
| c | the nodes |
Create one UDP trace client application on each of the input nodes
Definition at line 147 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.
Here is the call graph for this function:| void ns3::UdpTraceClientHelper::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 141 of file udp-client-server-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
Referenced by UdpTraceClientServerTestCase::DoRun(), and UdpTraceClientHelper().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Object factory.
Definition at line 220 of file udp-client-server-helper.h.
Referenced by Install(), SetAttribute(), and UdpTraceClientHelper().