[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: handle to queue object
On Wed, 20 Oct 1999, Sambit Sahu wrote:
> Hi,
> I am creating some new variables inside a class derived from base
> class Queue (and also binding them to new tcl varibles that I create
> in ns-default.tcl). I am using this to create a link. Now my question
> is how do I get a handle to this queue object so that I can access the
> variables I created from the tcl script?
To obtain a handle to the queue buffering traffic @ node 1 destined for
node 2 you can do the following:
set q [[$ns link $n1 $n2] queue]
or using the more clear
set link [$ns link $n1 $n2]
set q [$link queue]
Sean.
-----
Sean Murphy, Email: [email protected]
Teltec Ireland, Phone: +353-1-7045080
DCU, Dublin 9, Fax: +353-1-7045092
Ireland.