[ndnSIM] getting PIT size?
aa at CS.UCLA.EDU
Thu Sep 1 21:55:07 PDT 2016
There is a slightly different way for that:
auto& pit = (*node)->GetObject<ndn::L3Protocol>()->getForwarder()->getPit();
cout << pit.size();
> On Sep 1, 2016, at 9:27 PM, Narges Mehran <narges.mehran at gmail.com> wrote:
> Hello everyone,
> I want to get the PIT size at the moment, although I know that it isn't needed to allocate PIT size in NFD. When I run the following code, I get this error, any help?
> Ptr<ns3::ndn::nfd::Pit> pit = (*node)->GetObject<ns3::ndn::nfd::Pit>();
> cout << pit->size() << "\t";
> ./ns3/ptr.h:710:7: error: ‘class nfd::Pit’ has no member named ‘Ref’
> m_ptr->Ref ();
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the ndnSIM