[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help: how to implement a new protocol?
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.
ZXG
============
Zhu Xiaogang
Computer Network Research Laboratory
Shanghai Jiaotong University of P.R.C
Tel:86-21-62812014
[email protected]