[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About ns
It means that ns has problem when interpreting your tcl code.
BTW, when you only want to add tcl code to ns, you probably want to put
them in a single script and load them interpretively instead of compile
the tcl into ns. It avoids recompiling ns.
- Haobo
On Tue, 15 Feb 2000, Liu Xiaoyun wrote:
> hi,
> I just add some source code to ns and make it.
> There are no errors when making but when the ns runs, it exits with error
> code 1.
> Some tcl codes in ns-lib.tcl are shown. The last is:
>
> Simulator instproc abstract-tcp {} {
> $self instvar TahoeAckfsm_ RenoAckfsm_ TahoeDelAckfsm_ RenoDelAckfsm_
> dropper_
> $self set TahoeAckfsm_ [new FSM/TahoeAck]
> $self set RenoAckfsm_ [new FSM/RenoAck]
> $self set TahoeDelAckfsm_ [new FSM/TahoeDelAck]
> $self set RenoDelAckfsm_ [new FSM/RenoDelAck]
> $self set nullAgent_ [new DropTargetAgent]
> }
>
> How can I resolve this problem? Any suggestions?
>
> Thanks
>
> Xiaoyun
>