[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Blocking a DropTail queue
My guess is that blocked_ only gets bound in C++ space
when queue is initialized (i.e. when simulation starts).
Kun-chan Lan
On Fri, 10 Aug 2001, Gustavo Da Costa wrote:
> Hi,
>
> Does anybody know how to set the variable blocked_ for a DropTail queue
> at a specified time?
>
> If I use:
>
> $ns duplex-link $n0 $n1 10ms DropTail
> set q [[$ns link $n0 $n1] queue]
> $q set blocked_ 1
>
> Then the queue is successfuly blocked at the beggining of the
> simulation. However if I try to block the queue later instead of at the
> start of the simulation:
>
> $ns at 6.0 "$q set blocked_ 1"
>
> Then there are no error messages but the queue is never blocked.
>
> Any ideas would be greatly appreciated.
>
> Cheers,
>
> Gustavo.
>
>
>
>
>