- if (mysocket->finished == false){
- mysocket->finished = true;
- XBT_DEBUG("recv_cb of F[%p, %p, %d]", mysocket, mysocket->action, mysocket->totalBytes);
- XBT_DEBUG("Stop simulator at %f seconds", Simulator::Now().GetSeconds());
- Simulator::Stop(Seconds(0.0));
- Simulator::Run();
+ if (flow->finished_ == false){
+ flow->finished_ = true;
+ XBT_DEBUG("recv_cb of F[%p, %p, %d]", flow, flow->action_, flow->totalBytes_);
+ XBT_DEBUG("Stop simulator at %f seconds", ns3::Simulator::Now().GetSeconds());
+ ns3::Simulator::Stop(ns3::Seconds(0.0));
+ ns3::Simulator::Run();