examples/tcp-large-transfer.cc
changeset 2594 a8f89acd17a1
parent 2592 3ebf97150166
child 2600 6c389d0c717d
equal deleted inserted replaced
2593:5f22033d1408 2594:a8f89acd17a1
   222   // and can be read by the "tcpdump -r" command (use "-tt" option to
   222   // and can be read by the "tcpdump -r" command (use "-tt" option to
   223   // display timestamps correctly)
   223   // display timestamps correctly)
   224   PcapTrace pcaptrace ("tcp-large-transfer.pcap");
   224   PcapTrace pcaptrace ("tcp-large-transfer.pcap");
   225   pcaptrace.TraceAllIp ();
   225   pcaptrace.TraceAllIp ();
   226 
   226 
   227   Config::Connect ("/NodeList/*/ApplicationList/*/Rx", 
   227   Config::ConnectWithoutContext ("/NodeList/*/ApplicationList/*/Rx", 
   228                    MakeCallback (&ApplicationTraceSink));
   228                    MakeCallback (&ApplicationTraceSink));
   229 
   229 
   230   Simulator::StopAt (Seconds(1000));
   230   Simulator::StopAt (Seconds(1000));
   231   Simulator::Run ();
   231   Simulator::Run ();
   232   Simulator::Destroy ();
   232   Simulator::Destroy ();