LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between these function calls in a routing protocol in ns2 (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-these-function-calls-in-a-routing-protocol-in-ns2-4175539743/)

sims2801 04-14-2015 10:11 PM

difference between these function calls in a routing protocol in ns2
 
Could you please tell me the difference between agent->function name() vs this->function name ().
Actually i am taking about LAR.cc file (LAR routing protocol) but these function calls can be part of any routing protocol.

As you can see below , they are calling the same function with this and agent in LAR.cc . What is the difference between when we are calling a function with "agent" or calling with "this"

>
> void LARRouteRequestTimer::expire(Event *e)
> {
> ......
> .....
> agent->sendRouteRequest(this->dest, forwardMethod, this->routeInfo, false); //ringZero=false
> .....
> ...
> }
>
>
> void LARAgent::routeRequest(Packet *p)
> {
> .....
> ....
> ...
> this->sendRouteRequest(dest, larhdr->forwardCode(), &(destPtr->second), useRingZeroSearch);
> .....
> .....
> }

I have to do some changes in this file . kindly give some information on this issue .

knudfl 04-15-2015 01:55 AM

LAR : Originally : Toilers Research Group -- Colorado School of Mines.
..... Quote from ns-2.xx/dream/README :
"" If you have any questions on the code,
send email to Tracy Camp at tcamp@mines.edu.
The research group's URL is http://toilers.mines.edu. ""
( http://toilers.mines.edu/Public/Code/
<<< http://toilers.mines.edu/Public/ )


And : Did you ask @billyfuad ?
>> http://www.linuxquestions.org/questi...ember&u=831366

>> http://network-simulator-ns-2.7690.n...odes&user=5465


? And in "the fourth ns2 Forum" ?
https://stackoverflow.com/questions/tagged/ns2


-

sims2801 04-15-2015 02:35 AM

Thanks a lot for ur reply.

I asked tracy also but she said "students worked on this graduated a decade ago. so no support from our side "

i tried to contact billyfaud a no of times. but didnt get any reply.
definitely i will try again .


i will post on this stackoverflow forum.

this question can be answered by any ppl who are familiar with ns2 internals. Can you suggest some name who is familiar with ns2 internals.


All times are GMT -5. The time now is 07:12 PM.