LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-14-2015, 11:11 PM   #1
sims2801
Member
 
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 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 .
 
Old 04-15-2015, 02:55 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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


-

Last edited by knudfl; 04-15-2015 at 03:16 AM.
 
Old 04-15-2015, 03:35 AM   #3
sims2801
Member
 
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 07:14 AM.

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