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

Re: [ns] how to implement my own classes?



Hi

the source code for the agents, sources and base classes are in the ns base
directory. The Tcl scripts which use those classes are in tcl/lib
So for instance the tcp agents are defined in tcp.cc and tcp.h in the ns dir
and some additional behaviour is defined in tcl/lib/ns-agent.tcl

Hope this helps
Mark

----- Original Message -----
From: "GrEenBiRd" <[email protected]>
To: <[email protected]>
Sent: Thursday, December 07, 2000 8:03 AM
Subject: [ns] how to implement my own classes?


> Hi,
>
> I am a new user of NS. I will use it to do a project on congestion
> control,i need to create my own (new) kind of classes and define their
> behaviors.
>
> I want to look at the files which implement the protocols(eg, Taheo
> etc) to get some sense on how to implement a new idea. But i am not sure
> what are the files? they are under which dir? Could anyone pls tell me?
>
> Thanks a lot!
>
>
> Best Regards,
> GreenBird
>
>