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

Re: [ns] Stop a CBR Traffic generator ...



stop is defined for all new traffic generators (app.cc). You can see its
effect in, say, tcl/ex/simple.tcl, by adding something like $ns at 2.0
"$cbr0 stop".

On Mon, 11 Sep 2000, Lloyd Wood wrote:

> On Mon, 11 Sep 2000, Vincenzo Mazzotta wrote:
> 
> > Hi to all ... somebody know the command to stop a CBR traffic generator ???
> > Don't go ns at 2.0 "$cbr stop" ...
> 
> well, you could - if you were using the older deprecated CBR agent,
> rather than the newer Application/Traffic/CBR.
> 
> in ~ns/tcl/lib/ns-source.tcl:
> 
> Agent/CBR/UDP instproc stop {} {
>         $self instvar trafgen_
>         $trafgen_ stop
> }
> 
> the odd thing is that there doesn't appear to be an equivalent to
> this in the rather less well-fleshed-out Application/Traffic/CBR.
> 
> puzzled, 
> 
> L.
> 
> <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
>