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

Junxiao Shi shijunxiao at email.arizona.edu
Thu Nov 28 03:18:38 PST 2019


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/20191128/dfac31fe/attachment.html>


More information about the ndnSIM mailing list