21 #include "ns3/udp-echo-server.h"
22 #include "ns3/udp-echo-client.h"
23 #include "ns3/uinteger.h"
24 #include "ns3/names.h"
51 Ptr<Node> node = Names::Find<Node> (nodeName);
132 Ptr<Node> node = Names::Find<Node> (nodeName);
holds a vector of ns3::Application pointers.
uint32_t AddApplication(Ptr< Application > application)
std::vector< Ptr< Node > >::const_iterator Iterator
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container. ...
Hold a value for an Attribute.
void SetTypeId(TypeId tid)
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
a polymophic address class
ApplicationContainer Install(Ptr< Node > node) const
Create a UdpEchoServerApplication on the specified Node.
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::UdpEchoServer on the node configured with all the attributes set with SetAttribute...
UdpEchoClientHelper(Address ip, uint16_t port)
Create UdpEchoClientHelper which will make life easier for people trying to set up simulations with e...
Ptr< Object > Create(void) const
Hold an unsigned integer type.
void SetFill(Ptr< Application > app, std::string fill)
Given a pointer to a UdpEchoClient application, set the data fill of the packet (what is sent as data...
keep track of a set of node pointers.
Iterator Begin(void) const
Get an iterator which refers to the first Node in the container.
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::UdpEchoClient on the node configured with all the attributes set with SetAttribute...
static TypeId GetTypeId(void)
Get the type ID.
void Set(std::string name, const AttributeValue &value)
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.
ObjectFactory m_factory
Object factory.
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
hold objects of type ns3::Address
UdpEchoServerHelper(uint16_t port)
Create UdpEchoServerHelper which will make life easier for people trying to set up simulations with e...
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.
static TypeId GetTypeId(void)
Get the type ID.
ApplicationContainer Install(Ptr< Node > node) const
Create a udp echo client application on the specified node.
ObjectFactory m_factory
Object factory.