[ndnSIM] Get node ID in forwarder class

HADIBI ABDENNOUR emp.ifd.009.hadibi.abdennour at gmail.com
Tue Sep 21 01:47:50 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/a1c3a368/attachment.html>

More information about the ndnSIM mailing list