[ndnSIM] Error while making changes in ndn-simple.cpp

Arif Hussain Magsi ahmagsi at sau.edu.pk
Fri Sep 30 00:58:14 PDT 2022


Dear all,

I am facing a problem while changing in ndn-simple.cpp as given below:


  1.  I want to add caching in ndn-simple.cpp but i face an error. What is the mistake in following code?

// Connecting nodes using two links
  PointToPointHelper p2p;
  p2p.Install(nodes.Get(0), nodes.Get(2));
  p2p.Install(nodes.Get(1), nodes.Get(2));
  p2p.Install(nodes.Get(2), nodes.Get(3));


  // Install NDN stack on all nodes
  ndn::StackHelper ndnHelper;
  ndnHelper.SetDefaultRoutes(true);
ndnHelper.setCsSize(100);
ndnHelper.setPolicy("nfd::cs::lru");
ndnHelper.Install(nodes.Get(2));

Looking for your response please.



BR,

Magsi, Arif Hussain
____________________
ahmagsi at sau.edu.pk
Whatsapp. +92-302-3483433
Wechat. +86-15600225390
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20220930/8d680b8b/attachment.html>


More information about the ndnSIM mailing list