21 #include "ns3/names.h"
22 #include "ns3/udp-echo-client.h"
23 #include "ns3/udp-echo-server.h"
24 #include "ns3/uinteger.h"
50 Ptr<Node> node = Names::Find<Node>(nodeName);
58 for (
auto i = c.
Begin(); i != c.
End(); ++i)
124 Ptr<Node> node = Names::Find<Node>(nodeName);
132 for (
auto i = c.
Begin(); i != c.
End(); ++i)
a polymophic address class
holds a vector of ns3::Application pointers.
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container.
Hold a value for an Attribute.
keep track of a set of node pointers.
Iterator End() const
Get an iterator which indicates past-the-last Node in the container.
Iterator Begin() const
Get an iterator which refers to the first Node in the container.
uint32_t AddApplication(Ptr< Application > application)
Associate an Application to this Node.
Ptr< Object > Create() const
Create an Object instance of the configured TypeId.
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
UdpEchoClientHelper(Address ip, uint16_t port)
Create UdpEchoClientHelper 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.
ApplicationContainer Install(Ptr< Node > node) const
Create a udp echo client application on the specified node.
ObjectFactory m_factory
Object factory.
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::UdpEchoClient on the node configured with all the attributes set with SetAttribute.
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...
static TypeId GetTypeId()
Get the type ID.
UdpEchoServerHelper(uint16_t port)
Create UdpEchoServerHelper which will make life easier for people trying to set up simulations with e...
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::UdpEchoServer on the node configured with all the attributes set with SetAttribute.
ObjectFactory m_factory
Object factory.
ApplicationContainer Install(Ptr< Node > node) const
Create a UdpEchoServerApplication on the specified Node.
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()
Get the type ID.
Hold an unsigned integer type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.