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

Re: Queue



	Hi James

Hope this helps:

SimpleLink instproc qHandle {} {
    $self instvar head_ enqT_ deqT_ queue_ link_

# here you have all interesting handles on the link object

}

Simulator instproc linkStuff { src dst } {
    $self instvar link_
    set lnk $link_([$src id]:[$dst id])

    $lnk qHandle 
}

$ns linkStuff $node1 $node2

- johan & wesa

> 
> 
> I have a question on link object. How can i get a handle for queue_?
> Thanks,
> 
> 
> ----------------------------------------------------------
> Deying James Tong          email: [email protected]
> EE Department                     [email protected]
> Texas A&M University       Work Phone: 409-8459578
> 
>