[ns] node id in c++
Jorge Lanza
jlanza at tlmat.unican.es
Fri May 16 01:01:38 PDT 2008
This is what I do in my agent (I'm not an expert ;))
int nodeid = -1;
Node* thisnode = Node::get_node_by_address(addr()); // here you
if (thisnode) {
nodeid = node->nodeid();
}
Hope it helps.
Jorge
At 15/05/2008 23:30, anas abu_taleb wrote:
> 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
>
>
>
More information about the Ns-users
mailing list