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 () | |
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 |
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.
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.
ip | The IP address of the remote udp server |
port | The port number of the remote udp server |
Definition at line 78 of file udp-client-server-helper.cc.
References 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 99 of file udp-client-server-helper.cc.
References ns3::ApplicationContainer::Add(), ns3::Node::AddApplication(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), and ns3::NodeContainer::End().
Referenced by ns3::LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), ns3::LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), ns3::LenaPssFfMacSchedulerTestCase1::DoRun(), ns3::LteX2HandoverTestCase::DoRun(), ns3::LenaPssFfMacSchedulerTestCase2::DoRun(), ns3::LenaTdTbfqFfMacSchedulerTestCase2::DoRun(), and ns3::LenaFdTbfqFfMacSchedulerTestCase2::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 93 of file udp-client-server-helper.cc.
References ns3::ObjectFactory::Set().
Referenced by ns3::LenaFdTbfqFfMacSchedulerTestCase1::DoRun(), ns3::LenaPssFfMacSchedulerTestCase1::DoRun(), ns3::LenaTdTbfqFfMacSchedulerTestCase1::DoRun(), UdpClientServerTestCase::DoRun(), ns3::LenaFdTbfqFfMacSchedulerTestCase2::DoRun(), ns3::LenaTdTbfqFfMacSchedulerTestCase2::DoRun(), ns3::LenaPssFfMacSchedulerTestCase2::DoRun(), and UdpClientHelper().