[ndnSIM] getting PIT size?

Narges Mehran narges.mehran at gmail.com
Thu Sep 1 22:24:55 PDT 2016


Thank you! it worked!
I was familiar with ndnSIM 1.0, Now I can get involved with ndnSIM 2.1.

Best Regards

On Fri, Sep 2, 2016 at 9:25 AM, Alex Afanasyev <aa at cs.ucla.edu> wrote:

> Hi Narges,
>
> There is a slightly different way for that:
>
> auto& pit = (*node)->GetObject<ndn::L3Protocol>()->getForwarder()-
> >getPit();
> cout << pit.size();
>
> --
> Alex
>
> > 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
> > 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/20160902/2280d3f4/attachment.html>


More information about the ndnSIM mailing list