ns-3
|
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) | |
void | SetAttribute (std::string name, const AttributeValue &value) |
ApplicationContainer | Install (NodeContainer c) |
Create a client application which sends udp packets carrying a 32bit sequence number and a 64 bit time stamp.
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-client-server.
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 |
References ns3::UdpClient::GetTypeId(), SetAttribute(), and ns3::ObjectFactory::SetTypeId().
c | the nodes |
Create one udp client application on each of the input nodes
References ns3::ApplicationContainer::Add(), ns3::Node::AddApplication(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), and ns3::NodeContainer::End().
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 |
References ns3::ObjectFactory::Set().
Referenced by UdpClientHelper().