[ns] How acess the protocol agent of a mobil node

Martin Wenig wenig at i4.informatik.rwth-aachen.de
Wed Jan 4 04:12:52 PST 2006


Hi!

in the tcl script you can add the following line after the creation of 
the node

set node_($i)     [$ns_ node]            ;#create the node
set ragent_($i)    [$node_($i) set ragent_]    ;#get the routing agent

Hope that helps
Martin

Olivier Berho wrote:
> Hi all.
>
> I would like to know if someone can explain me how sould I do to get an 
> access of the protocol agent of a mobile node.
> The mobile node I use is declared in this way :
>
> set val(adhocRouting)   AODV
> .
> .
> .
> $ns_ node-config -adhocRouting $val(adhocRouting) \
> .
> .
> .
>
> How could I do to get the "name" of that  variable in order to use some 
> methods I have develop in the body of the protocol AODV ?
>
> Thanks a lot.
>
> Olivier. 
>
>
>
>   




More information about the Ns-users mailing list