Re: [ns] *.h and *.cc

2006-04-17 Thread guzinu

Hi,
ns uses two programming languages. One for high level programming
(otcl), another for low level programming (c++). Code that implements
a routing protocol, an application protcol, a queue algorithm etc. is
written in C++ because of such things require a system programming
language which can do low level processing.
On the other hand, you can define different network scenarios with
Otcl and run in visual environment. You can control various parameters
of low level protocols via this programming language that doesn't
require any modification to the codes that define the protocols
written in C++.
*.cc files contains main section the code that you are concerned. For
Example, DSDV directory contains two *.cc files. These files implement
the manet routing protocol DSDV. Two *.h files contains class
declarations that are implemented in *.cc files, various inline
functions, or packet header structures for new protocols,etc.
Have a good day

Guzin Ulutas (CEng)




[ns] *.h and *.cc

2006-04-17 Thread qadous

Dear ns- users:

what's the reason for having to files in ns2 for defining any protocol such as
TCP?

what's the duty of *.h file?

what's the duty of *.cc file?

thank you in advance.
chrs


This message was sent using IMP, the Internet Messaging Program.