Use Time() constructor with integer values

This commit is contained in:
Eduardo Almeida
2024-11-08 18:01:13 +00:00
parent 5d104f6f90
commit 5afa1fd7ef
314 changed files with 1771 additions and 1775 deletions

View File

@@ -79,17 +79,17 @@ main(int argc, char* argv[])
UdpEchoServerHelper echoServer(9);
ApplicationContainer serverApps = echoServer.Install(csmaNodes.Get(nCsma));
serverApps.Start(Seconds(1.0));
serverApps.Stop(Seconds(10.0));
serverApps.Start(Seconds(1));
serverApps.Stop(Seconds(10));
UdpEchoClientHelper echoClient(csmaInterfaces.GetAddress(nCsma), 9);
echoClient.SetAttribute("MaxPackets", UintegerValue(1));
echoClient.SetAttribute("Interval", TimeValue(Seconds(1.0)));
echoClient.SetAttribute("Interval", TimeValue(Seconds(1)));
echoClient.SetAttribute("PacketSize", UintegerValue(1024));
ApplicationContainer clientApps = echoClient.Install(p2pNodes.Get(0));
clientApps.Start(Seconds(2.0));
clientApps.Stop(Seconds(10.0));
clientApps.Start(Seconds(2));
clientApps.Stop(Seconds(10));
Ipv4GlobalRoutingHelper::PopulateRoutingTables();