[ns] Reply: How to get this node id?

Mubashir Husain Rehmani mshrehmani at yahoo.com
Mon Aug 18 05:45:13 PDT 2008


Hello

Here is the answer to your question: You can access this node id which is mention in Node.cc File in a C++ file by using

Node* thisnode = Node::get_node_by_address(n_id); //you can also give index variable as an argument to this function


cout<<"Node ID:\t"<<thisnode->nodeid()<<endl;

Feel free to ask further.

Regards


  Mubashir Husain Rehmani 
  Mobile   : 00 33 (0)6 32 00 89 35

mshrehmani at gmail.com



      


More information about the Ns-users mailing list