[ns] Mac - Link layer

Santhosh Kumar vsantu88 at gmail.com
Tue Jul 14 07:15:59 PDT 2009


On Tue, Jul 14, 2009 at 3:36 PM, qweq adcsad <nill_akaser_tara at yahoo.com>wrote:

>
>
> Well.If u want to enter into the wirelessPhy::command() ,you need to have a
> wirelessphy object in your tcl side. Suppose the name of the phy object for
> node 0 is obj(0).
>
> Then in the tcl script if u put the command:
> $obj(0) mystring .......... ,the control will go to the
> wirelessphy::command() function, where argv[1] will be mystring in this
> case.
>
>
Thanks for the reply. That raises an other Question. Once the node, say
node_(0), parameters are declared using node-config, how to get the
objects/handles for Phy, Channel, Mac, etc., so that we can enter into
WirelessPhy::command using the node_(0)'s handles.


-- 
Santhosh Kumar
Senior Year, Electrical Engineering
Indian Institute of Technology, Madras


More information about the Ns-users mailing list