[ndnSIM] Starting one consumer after another.

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Thu Jan 28 13:52:06 PST 2016


Hi Muhammad,

you can use the Start and Stop methods. Take a look here for an example:

https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-congestion-alt-topo-plugin.cpp#L102-L103 <https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-congestion-alt-topo-plugin.cpp#L102-L103>

Hope that this helps.

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA




> On Jan 23, 2016, at 7:06 AM, Muhammad Faran <m.faran.majeed at gmail.com> wrote:
> 
> Dear All!
> 
> I want to implement the logic of starting consumer-2 once consumer-1 finishes asking for chunks:
> 
> consumer1 = ask from 1 - 2000
> when consumer1 finished
> consumer2 = ask from 2000 - 4000
> 
> Can anyone help me in this regard?
> 
> Kind regards,
> 
> Muhammad Faran Majeed,
> AIT, Thailand

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


More information about the ndnSIM mailing list