Telis Papadopoulos wrote:
> Hi all,
> ...quoting from the ns_doc: "class Agent/rtProto: this is the base class
> from which all routing protocol agents are derived..."
> However, looking at the code of Distance Vector protocol, the respective
> agent is derived directly from the 'Agent' class...
> 
> class rtProtoDV : public Agent {
> public:
>     rtProtoDV() : Agent(PT_RTPROTO_DV)
> 
> Am I missing something here?
> Thanx

The documentation is referring to the OTcl class hierarchy, and you are 
looking at the C++ hierarchy.  See line 67 of rtProtoDV.cc:
         rtProtoDVclass() : TclClass("Agent/rtProto/DV") {}
where the OTcl binding is established.  See chapter 3 of the ns 
documentation for more information on the OTcl linkage:
http://www.isi.edu/nsnam/ns/doc/node5.html

If necessary, please follow up this post *only* on ns-users@isi.edu 
(drop [EMAIL PROTECTED]).

Tom

Reply via email to