[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I create a QueueMonitor Object ?
Xudong,
Here's how I create queue monitors - I access them using for example
puts "[$qm1 set pkts_]"
Sean.
-----
# I don't use this
set qt [open /dev/null w]
set q1 [[$ns link $node(0) $node(1)] queue]
set link1 [$ns link $node(0) $node(1)]
set q2 [[$ns link $node(1) $node(0)] queue]
set link2 [$ns link $node(1) $node(0)]
$link1 init-monitor $ns $qt 0.05
$link2 init-monitor $ns $qt 0.05
set qm1 [$link1 set qMonitor_]
set qm2 [$link2 set qMonitor_]
-----
On Tue, 28 Sep 1999, XuDong Wu wrote:
> Hi, ns gurus :
>
> I would like to create a QueueMonitor, But ihave encountered
> the following problem when compiling:
>
> In *.tcl file I wrote the following statement:
> set qvar [$ns monitor-queue $r0 $k0]
>
> When compiling, I got such information:
>
>
> no value given for parameter "qtrace" to "_o3"
> (Simulator monitor-queue line 1)
> invoked from within
> "$ns monitor-queue $r0 $k0"
>
> What is the problem ?
>
> Regards
>
> Xudong
>
>
>
>
>
>
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
-----
Sean Murphy, Email: [email protected]
Teltec Ireland, Phone: +353-1-7045080
DCU, Dublin 9, Fax: +353-1-7045092
Ireland.