[ndnSIM] Multiple consumers require same one interest

sobia Mirza sobia.mirza88 at yahoo.com
Sun Apr 1 02:09:12 PDT 2018


Hi I need to compile a scenario when multiple consumers need same one interest through  SetPrefix("...").Which followimg way is the best way to organize texts? 1 or 2?
1.ConsumerHelper.SetPrefix("...");ConsumerHelper.SetAttribute(....);ConsumerHelper.Install(nodes.Get(0));ConsumerHelper.Install(nodes.Get(1));ConsumerHelper.Install(nodes.Get(2));ConsumerHelper.Install(nodes.Get(3));....//for node 4
2.ConsumerHelper.SetPrefix("...");ConsumerHelper.SetAttribute(....);ConsumerHelper.Install(nodes.Get(0));
ConsumerHelper.SetPrefix("...");ConsumerHelper.SetAttribute(....);ConsumerHelper.Install(nodes.Get(1));
ConsumerHelper.SetPrefix("...");ConsumerHelper.SetAttribute(....);ConsumerHelper.Install(nodes.Get(2));

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180401/d7799fbc/attachment.html>


More information about the ndnSIM mailing list