Re: what does "proc cmu-trace" do in my tcl file
knudfl <[email protected]> Fri, 29 May 2015 07:58:32 -0700 (PDT)
| Newsgroups | gmane.network.simulator.isi |
|---|---|
| Message-ID | <[email protected]> |
Google, tcl proc
https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=tcl+proc
→ → http://wiki.tcl.tk/463 → → http://wiki.tcl.tk/38650 → →
http://wiki.tcl.tk/463 →
» proc, a built-in Tcl command, creates a new command. «
-
On Friday, May 29, 2015 at 4:05:59 PM UTC+2, mima Amira wrote:
>
> Hi every body
>
> please I would like to know what does this function exactely
>
>
> proc cmu-trace { ttype atype node } {
> global ns_ tracefd
>
> if { $tracefd == "" } {
> return ""
> }
> set T [new CMUTrace/$ttype $atype]
> $T target [$ns_ set nullAgent_]
> $T attach $tracefd
> $T set src_ [$node id]
>
> $T node $node
>
> return $T
> }
>
>
> thanks you
>
>
>