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

Re: compiling problem



satish kumar reddy wrote:

> Hi,
>
>   I tried running an example tcl program in ns and i got the followong
> error:
>
> warning: using backward compatibility mode
> ns: unable to dispatch method agent
>     while executing
> "ns agent tcp $n0"
>     invoked from within
> "set src1 [ns agent tcp $n0]..."
>     (file "example.tcl" line 47)
>
> can anyone tell me what the problem is????
>
> thanks in advance
>
> satish

you must write
set src1 [$n0 agent 0]             # where 0 (for example) is the port number
where TCP is attached

instead of
set src1 [ns agent tcp $n0]

Good luck