20 #include "udp-echo-helper.h"
21 #include "ns3/udp-echo-server.h"
22 #include "ns3/udp-echo-client.h"
23 #include "ns3/uinteger.h"
24 #include "ns3/names.h"
30 m_factory.
SetTypeId (UdpEchoServer::GetTypeId ());
39 m_factory.
Set (name, value);
51 Ptr<Node> node = Names::Find<Node> (nodeName);
59 for (NodeContainer::Iterator i = c.
Begin (); i != c.
End (); ++i)
78 m_factory.
SetTypeId (UdpEchoClient::GetTypeId ());
85 m_factory.
SetTypeId (UdpEchoClient::GetTypeId ());
92 m_factory.
SetTypeId (UdpEchoClient::GetTypeId ());
93 SetAttribute (
"RemoteAddress", AddressValue (Address(address)));
102 m_factory.
Set (name, value);
132 Ptr<Node> node = Names::Find<Node> (nodeName);
140 for (NodeContainer::Iterator i = c.
Begin (); i != c.
End (); ++i)
142 apps.
Add (InstallPriv (*i));
149 UdpEchoClientHelper::InstallPriv (
Ptr<Node> node)
const
holds a vector of ns3::Application pointers.
uint32_t AddApplication(Ptr< Application > application)
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
Ptr< Application > InstallPriv(Ptr< Node > node) const
UdpEchoClientHelper(Address ip, uint16_t port)
Ptr< Object > Create(void) const
Hold an unsigned integer type.
void SetFill(Ptr< Application > app, std::string fill)
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)
void SetAttribute(std::string name, const AttributeValue &value)
Ipv4 addresses are stored in host order in this class.
hold objects of type ns3::Address
UdpEchoServerHelper(uint16_t port)
void SetAttribute(std::string name, const AttributeValue &value)
ApplicationContainer Install(Ptr< Node > node) const