21 #include "ns3/string.h"
22 #include "ns3/udp-client.h"
23 #include "ns3/udp-server.h"
24 #include "ns3/udp-trace-client.h"
25 #include "ns3/uinteger.h"
51 for (
auto i = c.
Begin(); i != c.
End(); ++i)
96 for (
auto i = c.
Begin(); i != c.
End(); ++i)
136 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.
Hold variables of type string.
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.
ApplicationContainer Install(NodeContainer c)
UdpClientHelper()
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-c...
static TypeId GetTypeId()
Get the type ID.
Ptr< UdpServer > m_server
The last created server application.
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.
Ptr< UdpServer > GetServer()
Return the last created server.
ApplicationContainer Install(NodeContainer c)
Create one UDP server application on each of the Nodes in the NodeContainer.
ObjectFactory m_factory
Object factory.
UdpServerHelper()
Create UdpServerHelper which will make life easier for people trying to set up simulations with udp-c...
A UDP server, receives UDP packets from a remote host.
static TypeId GetTypeId()
Get the type ID.
ApplicationContainer Install(NodeContainer c)
UdpTraceClientHelper()
Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with ...
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.
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.