[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding a new TCP subclass
On Sat, 21 Aug 1999, Fernando Cela Diaz wrote:
> I'm trying to add a new TCP class to NS (a RFC793 TCP with some flags that
> allow to switch on and off mechanisms implemented in Tahoe and Reno over
> the plain RFC793 TCP, intended just for undergraduate education).
>
> I have written some test code in a file called tcp-rfc793edu.cc and added
> a header for it in tcp.h. In the class constructor I have done a test
> bind, as in Marc Greiss turorial:
>
> RFC793eduTcpAgent::RFC793eduTcpAgent() : TcpAgent()
> {
> bind_bool("add793expbackoff_", &add793expbackoff_);
> ...
>
>
> And I have set the inicialization value for add793expbackoff_ in
> ns-default.tcl, as in MG Tutorial:
>
> Agent/TCP/RFC793eduTcp set add793expbackoff_ 0
Are you calling it RFC793eduTcpAgent or RFC793eduTcp ?
Make up your mind. Try:
Agent/TCP/RFC793eduTcpAgent set add793expbackoff_ 0
given how you've written the ++C.
L.
<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>