examples/tcp/tcp-large-transfer.cc
changeset 6014 d251d4a44fde
parent 6009 e1b696a1ed28
child 6649 f5413d463948
--- a/examples/tcp/tcp-large-transfer.cc	Fri Jan 22 00:58:01 2010 -0800
+++ b/examples/tcp/tcp-large-transfer.cc	Fri Jan 22 12:44:53 2010 -0800
@@ -168,9 +168,8 @@
   //localSocket->SetAttribute("SndBufSize", UintegerValue(4096));
 
   //Ask for ASCII and pcap traces of network traffic
-  std::ofstream ascii;
-  ascii.open ("tcp-large-transfer.tr");
-  PointToPointHelper::EnableAsciiAll (ascii);
+  AsciiTraceHelper ascii;
+  p2p.EnableAsciiAll (ascii.CreateFileStream ("tcp-large-transfer.tr"));
   p2p.EnablePcapAll ("tcp-large-transfer");
 
   // Finally, set up the simulator to run.  The 1000 second hard limit is a