examples/routing/simple-global-routing.cc
changeset 6014 d251d4a44fde
parent 6009 e1b696a1ed28
child 6047 09841960107d
--- a/examples/routing/simple-global-routing.cc	Fri Jan 22 00:58:01 2010 -0800
+++ b/examples/routing/simple-global-routing.cc	Fri Jan 22 12:44:53 2010 -0800
@@ -145,10 +145,9 @@
   apps.Start (Seconds (1.1));
   apps.Stop (Seconds (10.0));
 
-  std::ofstream ascii;
-  ascii.open ("simple-global-routing.tr");
+  AsciiTraceHelper ascii;
+  p2p.EnableAsciiAll (ascii.CreateFileStream ("simple-global-routing.tr"));
   p2p.EnablePcapAll ("simple-global-routing");
-  PointToPointHelper::EnableAsciiAll (ascii);
 
   // Flow Monitor
   Ptr<FlowMonitor> flowmon;