LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2014, 07:05 AM   #1
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Rep: Reputation: Disabled
Retrieving node's position in ns2


Hi everybody,

What is the difference between the value returned from the methods node->CX() and node->X() in Ns2?
 
Old 11-22-2014, 08:24 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
What is the difference between the value returned from the methods

node->CX() and node->X() in ns2 ?
Please describe the files { Tcl files ? c++ files ? }
containing lines with node->CX() and node->X()

? Which line numbers have node->CX() and node->X() ?

-
 
Old 11-23-2014, 12:05 AM   #3
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Hi Mr. knudfi

I attached a .c++ file from Aqua-sim simulator which is built on top of NS2. The attached file implements vector based forward protocol. The methods I'm asking about can be found in different places in the file. For example, node->X() is available in line 640, node->CX() is in line 867. There is also another variable node->CX_ which all confused me.

I would be grateful if you can clarify the meaning of each one.
Attached Files
File Type: txt vectorbasedforward.txt (26.2 KB, 38 views)
 
Old 11-23-2014, 06:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #3 .

Files.cc must be attached as name.cc.txt .
Files.h as name.h.txt .
Files.tcl as name.tcl.txt .

* I.e. attachments should be easy to recognize.


Quote:
I would be grateful if you can clarify the meaning of each one
? Each one of what ? ?

-
 
  


Reply

Tags
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
How to change the algorithm of a node in ns2 Swathinag Linux - Software 11 10-04-2016 05:21 AM
NS2: How to set idle(sleeping) time to a node in wireless network in ns2 pon Linux - Newbie 0 08-19-2014 06:45 PM
Error in NS2.35 when creating node srikanthchikka Linux - Newbie 4 07-07-2014 09:52 PM
[SOLVED] random deployment of node in NS2 r0w225 Linux - Newbie 2 09-28-2012 06:13 AM
the moving direction of the node of ns2 edison_0927 Linux - Newbie 0 08-13-2012 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:04 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
Open Source Consulting | Domain Registration