ns-3
|
Create a server application which waits for input udp packets and uses the information carried into their payload to compute delay and to determine if some packets are lost. More...
#include <udp-client-server-helper.h>
Public Member Functions | |
UdpServerHelper () | |
UdpServerHelper (uint16_t port) | |
void | SetAttribute (std::string name, const AttributeValue &value) |
ApplicationContainer | Install (NodeContainer c) |
Ptr< UdpServer > | GetServer (void) |
Create a server application which waits for input udp packets and uses the information carried into their payload to compute delay and to determine if some packets are lost.
Create UdpServerHelper which will make life easier for people trying to set up simulations with udp-client-server application.
ns3::UdpServerHelper::UdpServerHelper | ( | uint16_t | port | ) |
Create UdpServerHelper which will make life easier for people trying to set up simulations with udp-client-server application.
port | The port the server will wait on for incoming packets |
References ns3::UdpServer::GetTypeId(), SetAttribute(), and ns3::ObjectFactory::SetTypeId().
Create one udp server application on each of the Nodes in the NodeContainer.
c | The nodes on which to create the Applications. The nodes are specified by a NodeContainer. |
References ns3::ApplicationContainer::Add(), ns3::Node::AddApplication(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), and ns3::NodeContainer::End().
void ns3::UdpServerHelper::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 UdpServerHelper().