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
> 
>        
> 

Reply via email to