[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] target_->recv(p);



> I often meet statement like target_->recv(p);

It calls next object's recv method.
(It works +/- like a linked list, one object calls recv method of his
target)

> Would you like to tell me
> what is target_, where it is defined?

It is defined in connector.h
In connector.cc you'll find (command method) commands used by tcl to set
and get this field.

In ns-link.tcl and ns-node.tcl you'll see how link and node objects are
linked by the target_ field.

Carlos

> Thanks,
> 
> Yuxi
> 
> -- 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Yuxi LI                  *  59#, Dept of Computing Science
> (780)492-7747(Lab)       *  University of Alberta
> (780)492-5150(Office)    *  Edmonton, Alberta
> www.cs.ualberta.ca/~yuxi *  Canada T6G 2E1
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>