[ndnSIM] access stored content in cache from forward.cpp

Zeinab Rezaiefar zeinab.rezaiefar at gmail.com
Thu Nov 28 21:57:52 PST 2019


Dear Junxiao,
Thanks for your reply. However, may I know how to just get the name of data
that the is requested by consumers.
Thanks
Best regards

On Thu, Nov 28, 2019 at 8:18 PM Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Zeinab
>
> /localhost/nfd/faces/events/%FE%02 is indeed a Data packet stored in the
> CS.
> It’s created by face management
>
> https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Face-Status-Change-Notification
>
> Yours, Junxiao
>
> On Thu, Nov 28, 2019 at 00:39 Zeinab Rezaiefar via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
>> Hello,
>> I would like to get name of content that are stored in the cache in
>> forward.cpp so I wrote the below lines:
>> for(ns3::Ptr<ns3::ndn::cs::Entry> csentry= m_csFromNdnSim->Begin();
>> csentry!= m_csFromNdnSim->End(); csentry=m_csFromNdnSim->Next(csentry))
>> {
>> std::cout<<"the name"<<csentry->GetName()<<"is stored in  node with
>> id"<<node->GetId()<<"\n";
>>
>> }
>>
>> However, I notice this not only gives prefix that stored but also gives
>> some event such as :
>> the name/localhost/nfd/faces/events/%FE%02is stored in node with id3
>>
>> what is the reason. how I can just access just the name of contents that
>> are stored.
>> I will appreciate any help
>> best regards
>> Zeinab
>> _______________________________________________
>> 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/20191129/918fd20f/attachment.html>


More information about the ndnSIM mailing list