[ndnSIM] Fw: Multiple consumers require same one interest

Xinyu Ma bitmxy at gmail.com
Mon Apr 2 08:47:34 PDT 2018


Hello.

Sorry for forgetting to copy it to ndnSim.
I have tried both of the methods, but I still didn't find any difference.
Could you please tell me what the "results" mean? Is it the number of
Interests sent, the one that you modified the consumer to print out?
And it will be better if you could tell more about your scenario.

Xinyu Ma.

2018-04-02 5:40 GMT+09:00 sobia Mirza <sobia.mirza88 at yahoo.com>:

>
>
>
> They both give different results..thats why im asking which one is correct
> to use?
>
> Sent from Yahoo Mail on Android
> <https://overview.mail.yahoo.com/mobile/?.src=Android>
>
> On Sun, 1 Apr, 2018 at 22:37, Xinyu Ma
> <bitmxy at gmail.com> wrote:
> Hello, Sobia Mirza
>
> I think both is okay. You can use the first one for short.
> SetPrefix and SetAttribute only set the parameters what the factory to use
> to create the application. They are not set to applications.
> There are no application's instances created before Install is called.
>
> May it helps,
> Xinyu Ma.
>
> 2018-04-01 18:09 GMT+09:00 sobia Mirza <sobia.mirza88 at yahoo.com>:
>
> 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));
>
>
>
> ______________________________ _________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/ mailman/listinfo/ndnsim
> <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
>
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180403/70008edc/attachment-0001.html>


More information about the ndnSIM mailing list