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

Zeinab Rezaiefar zeinab.rezaiefar at gmail.com
Wed Nov 27 21:38:43 PST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20191128/962ae60b/attachment.html>


More information about the ndnSIM mailing list