Also log node ids of sink and source to stderr

This commit is contained in:
Tim Schubert 2020-08-31 18:19:20 +02:00
parent db1510063a
commit cf411e1975

View file

@ -155,6 +155,9 @@ int main (int argc, char *argv[])
utCh.EnablePcapAll ("tcp-bulk-send", false); utCh.EnablePcapAll ("tcp-bulk-send", false);
} }
std::cerr << "LOCAL =" << users.Get (0)->GetId () << std::endl;
std::cerr << "REMOTE=" << users.Get (1)->GetId () << ",addr=" << Ipv4Address::ConvertFrom (remote) << std::endl;
NS_LOG_INFO ("Run Simulation."); NS_LOG_INFO ("Run Simulation.");
Simulator::Stop (Seconds (duration)); Simulator::Stop (Seconds (duration));
Simulator::Run (); Simulator::Run ();