[ndnSIM] node names find matching prefix

Josh J joshjdevl at gmail.com
Sun May 11 22:27:54 PDT 2014


Hi,

I would like to install the consumer helper on all nodes which begin with
"consumer", so I tried the following though receive a segfault. Is there a
way I can find and match all nodes beginning with a certain name?

  // Consumer
  ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerZipfMandelbrot");
  // Consumer will request /prefix/0, /prefix/1, ...
  consumerHelper.SetPrefix ("/producer1");
  consumerHelper.SetAttribute ("Frequency", StringValue ("10")); // 10
interests a second
  consumerHelper.SetAttribute("Randomize",    StringValue ("uniform"));
  consumerHelper.Install (Names::Find<Node>("consumer*"));


Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140511/91e11adf/attachment.html>


More information about the ndnSIM mailing list