[ndnSIM] check content store entries periodically ?
Chengb Cao
chengbcao at gmail.com
Sun Dec 24 18:07:22 PST 2017
Thank you, everyone, I have solved the problem using the following method:
Ptr<ndn::ContentStore> cs=router->GetObject<ndn::ContentStore>; //(1)
cs->Print(file);
Simulator::Schedule(...);
I got the correct entry, but, when I used the method in "
https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cpp",
line 79-81,
auto ndn = routet->GetObject<ndn::L3Protocol>();
for (const auto& entry : ndn->getForwarder()->getCs()) { //(2)
.......
the entry size is always 0, i am confused what's the difference between (1)
and (2) to get the CS pointer ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171225/6246dad7/attachment.html>
More information about the ndnSIM
mailing list