[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Where is FullTcp's init
Dear ns-2 Gurus:
I'm adding another Tcp agent to ns2 by
copying over code of FullTcp and modifying.
I didn't see an "init" instproc for
FullTcp as:
Agent/TCP/FullTcp instproc init {} {
.....
}
Although the FullTcp object can be inited
succesfully.
But my modified TcpClass:Agent/TCP/ProxyTcp
can't be created succesfully unless I put the
following code in ns-agent.tcl:
Agent/TCP/ProxyTcp instproc init {} {
$self next
}
My question is: why FullTcp doesn't need
an explict instproc:init but my new class need?
Thanks,
Kaichuan He