20 #ifndef UDP_CLIENT_SERVER_HELPER_H
21 #define UDP_CLIENT_SERVER_HELPER_H
24 #include "ns3/application-container.h"
25 #include "ns3/node-container.h"
26 #include "ns3/object-factory.h"
27 #include "ns3/ipv4-address.h"
28 #include "ns3/udp-server.h"
29 #include "ns3/udp-client.h"
holds a vector of ns3::Application pointers.
Ptr< UdpServer > m_server
The last created server application.
Smart pointer class similar to boost::intrusive_ptr.
Hold a value for an Attribute.
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.
UdpClientHelper()
Create UdpClientHelper which will make life easier for people trying to set up simulations with udp-c...
ObjectFactory m_factory
Object factory.
ApplicationContainer Install(NodeContainer c)
ApplicationContainer Install(NodeContainer c)
a polymophic address class
UdpServerHelper()
Create UdpServerHelper which will make life easier for people trying to set up simulations with udp-c...
UdpTraceClientHelper()
Create UdpTraceClientHelper which will make life easier for people trying to set up simulations with ...
Create a client application which sends UDP packets carrying a 32bit sequence number and a 64 bit tim...
Create UdpTraceClient application which sends UDP packets based on a trace file of an MPEG4 stream...
ObjectFactory m_factory
Object factory.
Ptr< UdpServer > GetServer(void)
Return the last created server.
Create a server application which waits for input UDP packets and uses the information carried into t...
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
ObjectFactory m_factory
Object factory.
Describes an IPv6 address.
Instantiate subclasses of ns3::Object.
Ipv4 addresses are stored in host order in this class.
ApplicationContainer Install(NodeContainer c)
Create one UDP server application on each of the Nodes in the NodeContainer.
void SetAttribute(std::string name, const AttributeValue &value)
Record an attribute to be set in each Application after it is is created.