examples: Use different constructor for UdpEchoClientHelper in wifi example

This commit is contained in:
Sébastien Deronne
2024-05-17 07:59:13 +02:00
parent ce459e3d8a
commit 3fa3c1a049

View File

@@ -130,7 +130,7 @@ experiment(bool enableCtsRts, std::string wifiManager)
* This is a workaround for the lack of perfect ARP, see \bugid{187}
*/
uint16_t echoPort = 9;
UdpEchoClientHelper echoClientHelper(Ipv4Address("10.0.0.2"), echoPort);
UdpEchoClientHelper echoClientHelper(InetSocketAddress(Ipv4Address("10.0.0.2"), echoPort));
echoClientHelper.SetAttribute("MaxPackets", UintegerValue(1));
echoClientHelper.SetAttribute("Interval", TimeValue(Seconds(0.1)));
echoClientHelper.SetAttribute("PacketSize", UintegerValue(10));