equal
deleted
inserted
replaced
19 */ |
19 */ |
20 #include "udp-echo-helper.h" |
20 #include "udp-echo-helper.h" |
21 #include "ns3/udp-echo-server.h" |
21 #include "ns3/udp-echo-server.h" |
22 #include "ns3/udp-echo-client.h" |
22 #include "ns3/udp-echo-client.h" |
23 #include "ns3/uinteger.h" |
23 #include "ns3/uinteger.h" |
|
24 #include "ns3/object-names.h" |
24 |
25 |
25 namespace ns3 { |
26 namespace ns3 { |
26 |
27 |
27 UdpEchoServerHelper::UdpEchoServerHelper (uint16_t port) |
28 UdpEchoServerHelper::UdpEchoServerHelper (uint16_t port) |
28 { |
29 { |
39 } |
40 } |
40 |
41 |
41 ApplicationContainer |
42 ApplicationContainer |
42 UdpEchoServerHelper::Install (Ptr<Node> node) const |
43 UdpEchoServerHelper::Install (Ptr<Node> node) const |
43 { |
44 { |
|
45 return ApplicationContainer (InstallPriv (node)); |
|
46 } |
|
47 |
|
48 ApplicationContainer |
|
49 UdpEchoServerHelper::Install (std::string nodeName) const |
|
50 { |
|
51 Ptr<Node> node = Names::Find<Node> (nodeName); |
44 return ApplicationContainer (InstallPriv (node)); |
52 return ApplicationContainer (InstallPriv (node)); |
45 } |
53 } |
46 |
54 |
47 ApplicationContainer |
55 ApplicationContainer |
48 UdpEchoServerHelper::Install (NodeContainer c) const |
56 UdpEchoServerHelper::Install (NodeContainer c) const |
85 { |
93 { |
86 return ApplicationContainer (InstallPriv (node)); |
94 return ApplicationContainer (InstallPriv (node)); |
87 } |
95 } |
88 |
96 |
89 ApplicationContainer |
97 ApplicationContainer |
|
98 UdpEchoClientHelper::Install (std::string nodeName) const |
|
99 { |
|
100 Ptr<Node> node = Names::Find<Node> (nodeName); |
|
101 return ApplicationContainer (InstallPriv (node)); |
|
102 } |
|
103 |
|
104 ApplicationContainer |
90 UdpEchoClientHelper::Install (NodeContainer c) const |
105 UdpEchoClientHelper::Install (NodeContainer c) const |
91 { |
106 { |
92 ApplicationContainer apps; |
107 ApplicationContainer apps; |
93 for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i) |
108 for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i) |
94 { |
109 { |