[ndnSIM] Print PIT table

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Sun Jan 6 06:28:37 PST 2019


Hi,

as you can see Pit can be found under the nfd::pit namespace:

https://github.com/named-data/NFD/blob/master/daemon/table/pit.cpp

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Jan 6, 2019, at 1:26 PM, hakima khelifi <khelifihakima22 at yahoo.fr> wrote:
> 
> 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,
> 
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

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


More information about the ndnSIM mailing list