[ndnSIM] Finding Id of interest sending node

Anil Jangam anilj.mailing at gmail.com
Thu Mar 3 23:46:00 PST 2016


You can get the pointer to the node sending the Interest as below. Get the
node Id from the node object.

 ns3::Ptr<ns3::Node> thisNode =
ns3::NodeList::GetNode(ns3::Simulator::GetContext());

To answer your other question, I think it depends how you write your
producer application logic. I think you should be able to filter out
certain Interest, based on where you want to remain silent or not.


On Sun, Feb 28, 2016 at 5:00 AM, Shahid Md. Asif Iqbal <asifcsep at gmail.com>
wrote:

> Dear all,
> How can I find the id of the node sending an interest in the forwarder.cpp
> and ndn-producer.cpp files?
> And, is it reasonable a producer replying for some segments and remain
> silent for some segments of the same interest? And if it is please give
> some hints how to do that.
>
> _______________________________________________
> 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/20160303/87f4bda8/attachment.html>


More information about the ndnSIM mailing list