Public Member Functions

ns3::UdpEchoServerHelper Class Reference

Create a server application which waits for input udp packets and sends them back to the original sender. More...

#include <udp-echo-helper.h>

Collaboration diagram for ns3::UdpEchoServerHelper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UdpEchoServerHelper (uint16_t port)
void SetAttribute (std::string name, const AttributeValue &value)
ApplicationContainer Install (Ptr< Node > node) const
ApplicationContainer Install (std::string nodeName) const
ApplicationContainer Install (NodeContainer c) const

Detailed Description

Create a server application which waits for input udp packets and sends them back to the original sender.


Constructor & Destructor Documentation

ns3::UdpEchoServerHelper::UdpEchoServerHelper ( uint16_t  port  ) 

Create UdpEchoServerHelper which will make life easier for people trying to set up simulations with echos.

Parameters:
port The port the server will wait on for incoming packets

Member Function Documentation

ApplicationContainer ns3::UdpEchoServerHelper::Install ( Ptr< Node node  )  const

Create a UdpEchoServerApplication on the specified Node.

Parameters:
node The node on which to create the Application. The node is specified by a Ptr<Node>.
Returns:
An ApplicationContainer holding the Application created,
ApplicationContainer ns3::UdpEchoServerHelper::Install ( NodeContainer  c  )  const
Parameters:
c The nodes on which to create the Applications. The nodes are specified by a NodeContainer.

Create one udp echo server application on each of the Nodes in the NodeContainer.

Returns:
The applications created, one Application per Node in the NodeContainer.
ApplicationContainer ns3::UdpEchoServerHelper::Install ( std::string  nodeName  )  const

Create a UdpEchoServerApplication on specified node

Parameters:
nodeName The node on which to create the application. The node is specified by a node name previously registered with the Object Name Service.
Returns:
An ApplicationContainer holding the Application created.
void ns3::UdpEchoServerHelper::SetAttribute ( std::string  name,
const AttributeValue value 
)

Record an attribute to be set in each Application after it is is created.

Parameters:
name the name of the attribute to set
value the value of the attribute to set

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