Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-14-2015, 11:11 PM   #1
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
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 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 . 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 .
Old 04-15-2015, 02:55 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,321

Rep: Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581Reputation: 3581
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
The research group's URL is ""
<<< )

And : Did you ask @billyfuad ?

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

? And in "the fourth ns2 Forum" ?


Last edited by knudfl; 04-15-2015 at 03:16 AM.
Old 04-15-2015, 03:35 AM   #3
Registered: Aug 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
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.


lar, ns2

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
APTEEN routing protocol for ns2.34 under CYGWIN reem10 Linux - Software 0 01-15-2014 10:44 PM
NS2: MFR and LAR routing protocol anisabutsi Linux - Software 1 06-04-2013 01:20 PM
GPSR routing protocol on ns2.34 farfattou Programming 4 02-22-2013 03:58 AM
spin routing protocol simulation in ns2 piyar Linux - Software 0 08-19-2011 02:17 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration