[ndnSIM] Node ID in forwarder class ndnsim2.8

HADIBI ABDENNOUR emp.ifd.009.hadibi.abdennour at gmail.com
Tue Sep 21 01:49:41 PDT 2021

I'm trying to get node ID in forwarder class using the following code :

auto node = ns3::NodeList::GetNode(ns3::Simulator::GetContext());
std::cout<<" Node ID : "<<node->GetId()<<std::endl;

It didnt work for me : error : 'ns3::NodeList' has not been declared

Im using ndnSim2.8

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

More information about the ndnSIM mailing list