[ns] node id in c++
Mubashir Rehmani
mshrehmani at gmail.com
Fri May 16 00:17:01 PDT 2008
Hi,
Yes you can get the node ID through this code
Total number of Nodes: God::instance()->nodes();
Node ID: Node::nodeid();
Don't forget the include God.h
Hope it works
Regards
2008/5/15 anas abu_taleb <anas_h_82 at yahoo.com>:
>
> Hi all
>
> I am trying to get the node id in the aodv and the udpagent c++ codes. Can
> anyone provide my with the way to do that and I will be grateful.
>
> Regards
> Anas
>
>
>
--
Mubashir Husain Rehmani
M2R Réseaux et Télécommunications
L2S Supélec
Université de Paris Sud XI
Mobile France: 00 33 (0)6 32 00 89 35
More information about the Ns-users
mailing list