examples: Hook trace source after application starts in BBR example

This commit is contained in:
Mohit P. Tahiliani
2022-03-20 18:30:18 +05:30
parent e5c6d63c5c
commit 452750347b

View File

@@ -200,8 +200,9 @@ int main (int argc, char *argv [])
BulkSendHelper source ("ns3::TcpSocketFactory", InetSocketAddress (ir1.GetAddress (1), port));
source.SetAttribute ("MaxBytes", UintegerValue (0));
ApplicationContainer sourceApps = source.Install (sender.Get (0));
sourceApps.Start (Seconds (0.0));
Simulator::Schedule (Seconds (0.2), &TraceCwnd, 0, 0);
sourceApps.Start (Seconds (0.1));
// Hook trace source after application starts
Simulator::Schedule (Seconds (0.1) + MilliSeconds (1), &TraceCwnd, 0, 0);
sourceApps.Stop (stopTime);
// Install application on the receiver