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

Re: Questions!



On Wed, 22 Sep 1999 18:38:26 BST, K Sun wrote: 
>Hello,
>    I am sorry for my questions. Although I have not completed ns Notes 
>and Documentation, I can not help asking some questions.
>    I have read some parts of the documentation above, but I could not 
>understand where "target_" has been set. I find in some ns program, it 
>is not needed to specially set target_.  I do not know "target_" 
>expresses the next hop node or the final destination. From some 
>programs, I feel it should mean the next hop node. 
>However, in page 57, "$newtcp target $dest" implies it should be the 
>final destination.

$dest != $final_dest 
(target_ is whatever's logically "next" on the way to where you want to go).
See the diagrams in Chapter 5.

>    Additionally, I try to install RSVP/ns. When I re-compiling ns, 
>there is such error information below:
>...
>rsvp-link.cc:71: call of overloaded `recv(Packet *&, int)' is ambiguous
>object.h:51: candidates are: NsObject::recv(Packet *, const char *)
>object.h:48:                 NsObject::recv(Packet *, Handler *)
>..
>
>The line 71 is: "target_->recv(p, 0);"
>I do not know what is wrong with it. It should call 
>" NsObject::recv(Packet *, Handler *)".
> 
>So, what is wrong with line 71?

The types don't match because the code is old and things have changed
since then.

   -John Heidemann