Help: how to implement a new protocol?
Wed, 28 Oct 1998 16:05:42 +0800
I am trying to use ns as my simulation tool, but I have some questions on
how to implement a new protocol. I am familar with c, c++, and have learned
TCL for only few days.
1.What should be writen in TCL and what in c++ ?
Known from "ns Notes and Documentation", there is a one-to-one
correspondence between a class in the interpreted hierarchy and one in
compiled hierarchy, but how to write it? Are there any rules to follow?
2.What are the mean of "$self", "instproc" and "instvar"?
I couldn't find above keywords in TCL's documents.
Any help will be greatly appreciated. I take the SRM and MFTP source codes
as my template, you can illustrate by SRM or MFTP. Thanks.
Computer Network Research Laboratory
Shanghai Jiaotong University of P.R.C