20 #include "udp-client-server-helper.h"
21 #include "ns3/udp-server.h"
22 #include "ns3/udp-client.h"
23 #include "ns3/udp-trace-client.h"
24 #include "ns3/uinteger.h"
25 #include "ns3/string.h"
35 m_factory.
SetTypeId (UdpServer::GetTypeId ());
42 m_factory.
Set (name, value);
49 for (NodeContainer::Iterator i = c.
Begin (); i != c.
End (); ++i)
62 UdpServerHelper::GetServer (
void)
73 m_factory.
SetTypeId (UdpClient::GetTypeId ());
80 m_factory.
SetTypeId (UdpClient::GetTypeId ());
87 m_factory.
SetTypeId (UdpClient::GetTypeId ());
95 m_factory.
Set (name, value);
102 for (NodeContainer::Iterator i = c.
Begin (); i != c.
End (); ++i)
118 m_factory.
SetTypeId (UdpTraceClient::GetTypeId ());
126 m_factory.
SetTypeId (UdpTraceClient::GetTypeId ());
134 m_factory.
SetTypeId (UdpTraceClient::GetTypeId ());
135 SetAttribute (
"RemoteAddress", AddressValue (Address (address)));
143 m_factory.
Set (name, value);
150 for (NodeContainer::Iterator i = c.
Begin (); i != c.
End (); ++i)
holds a vector of ns3::Application pointers.
uint32_t AddApplication(Ptr< Application > application)
hold variables of type string
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container. ...
Hold a value for an Attribute.
void SetAttribute(std::string name, const AttributeValue &value)
void SetTypeId(TypeId tid)
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
ApplicationContainer Install(NodeContainer c)
ApplicationContainer Install(NodeContainer c)
a polymophic address class
Ptr< Object > Create(void) const
Hold an unsigned integer type.
void SetAttribute(std::string name, const AttributeValue &value)
keep track of a set of node pointers.
Iterator Begin(void) const
Get an iterator which refers to the first Node in the container.
void Set(std::string name, const AttributeValue &value)
A Udp client. Sends UDP packet carrying sequence number and time stamp in their payloads.
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
hold objects of type ns3::Address
ApplicationContainer Install(NodeContainer c)
void SetAttribute(std::string name, const AttributeValue &value)
A Udp server. Receives UDP packets from a remote host. UDP packets carry a 32bits sequence number fol...