[ns] Get node number in c++ code
lijian at cs.ucdavis.edu
Thu May 13 15:10:47 PDT 2004
I am not sure what agent you are talking about...but for routing agent
(such as DSRAgent), it has a variable named "node_", which is defined in
its parent class and points to the node that this agent is attached to.
Through this pointer you have access to all information of this node,
including its id.
On Thu, 13 May 2004, Navid Bazaz wrote:
> > Hi everybody,
> > I wrote an agent .
> > In c++ code I want to get the node number that this agent is assigned to it
> > How can i do ?
> > thanks
> > bye
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Movies - Buy advance tickets for 'Shrek 2'
Jian Li, Ph.D. Candidate
Department of Computer Science
University of California, Davis
Davis, CA, 95616
Tel: 530-752-3128(lab) 530-219-8612(cell)
More information about the Ns-users