[ndnSIM] Print PIT table

hakima khelifi khelifihakima22 at yahoo.fr
Sun Jan 6 03:26:02 PST 2019


Dear all,

I am trying to print the PIT table by using the following code:

void PeriodicStatsPrinter(Ptr<Node> node, Time next)
{
  Ptr<ndn::Pit> pit = node->GetObject<ndn::Pit> ();

  std::cout << Simulator::Now ().ToDouble (Time::S) << "\t"
            << node->GetId () << "\t"
            << Names::FindName (node) << "\t"
            << pit->GetSize () << "\n";
  
  Simulator::Schedule (next, PeriodicStatsPrinter, node, next);
}

However, it is not working and I am getting the error of: ‘Pit’ is not a member of ‘ns3::ndn’.

Any guidelines!
Regards,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190106/3ce1f521/attachment.html>


More information about the ndnSIM mailing list