From d51656dd5f9f4e55ee5e54382c770e4239ca854f Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 19 Aug 2011 11:58:47 -0700 Subject: [PATCH] update manet-routing-compare example to use current tracing API --- examples/routing/manet-routing-compare.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/routing/manet-routing-compare.cc b/examples/routing/manet-routing-compare.cc index 121e6c269..afafb279f 100644 --- a/examples/routing/manet-routing-compare.cc +++ b/examples/routing/manet-routing-compare.cc @@ -342,10 +342,12 @@ RoutingExperiment::Run (int nSinks, int protocol, double txp, std::string CSVfil //NS_LOG_INFO ("Configure Tracing."); //tr_name = tr_name + "_" + m_protocolName +"_" + nodes + "nodes_" + sNodeSpeed + "speed_" + sNodePause + "pause_" + sRate + "rate"; - //std::ofstream ascii; - //ascii.open ((tr_name+".tr").c_str()); - //YansWifiPhyHelper::EnableAsciiAll (ascii); - //MobilityHelper::EnableAsciiAll (ascii); + //AsciiTraceHelper ascii; + //Ptr osw = ascii.CreateFileStream ( (tr_name + ".tr").c_str()); + //wifiPhy.EnableAsciiAll (osw); + //std::ofstream os; + //os.open ((tr_name + ".mob").c_str()); + //MobilityHelper::EnableAsciiAll (os); //Ptr flowmon; //FlowMonitorHelper flowmonHelper;