[ndnSIM] Getting the node's object

DIMPAL SUTAR dimpal.s at somaiya.edu
Sat Jun 3 21:54:37 PDT 2017


Hi,
You can get node id from custom forwarding strategy, using following  code:
uint32_t nodeId =ns3::Node::NodeList::GetNode(ns3::
Simulator::GetContext()))->GetId();

-- 

<http://www.somaiya.edu>             <http://www.somaiya.edu/kjsmc>  
<http://www.nareshwadi.org> <http://www.somaiya.edu>  
<http://www.helpachild.in> <http://nareshwadi.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170604/1b4ad881/attachment.html>


More information about the ndnSIM mailing list