Re: [ns] Simulating a C++ program in NS2

2014-01-08 Thread jose nmrd
you can have a look on the following link, hope it will help. http://www.cse.ohio-state.edu/~sakai/research/ns2_greedy.html -Jose- Date: Wed, 8 Jan 2014 23:05:38 -0800 From: rmo...@hotmail.com To: ns-users@ISI.EDU Subject: [ns] Simulating a C++ program in NS2 Hi.. I'm new to NS2,

Re: [ns] Help friends !!!

2014-01-04 Thread jose nmrd
Hi, there is a unique node ID generated by NS2 for the nodes during their creation. it's an int. and since a short int is 16 bits, an int is 32 bits, and a long int is 64 bits. i suppose by acceding the class Node in the c++ hierarchy and setting the int nodeid_ member as short int nodeid_,

Re: [ns] find neighbors in transmission range of mobile node

2013-11-08 Thread jose nmrd
have a look at this, http://mailman.isi.edu/pipermail/ns-users/2011-September/071003.html -Jose- Date: Fri, 8 Nov 2013 12:00:19 + From: exceptional_attract...@yahoo.com To: ns-users@ISI.EDU Subject: [ns] find neighbors in transmission range of mobile node Hi , How we can find

[ns] FW: Help my friends

2013-11-03 Thread jose nmrd
Hi Fares, i had a tcl script for my experiments. it has a fixed source and destination (node 0 and node 1 respectively), the others are randomely generated, after is the code tcl . #beggining** # Define options set val(chan) Channel/WirelessChannel

Re: [ns] God function

2013-05-18 Thread jose nmrd
Hi Zineb; http://mailman.isi.edu/pipermail/ns-users/2011-September/071004.html hope it will help. -Jose- Date: Sat, 18 May 2013 06:59:33 -0700 From: z.rezaie...@yahoo.com To: ns-users@ISI.EDU Subject: [ns] God function Hello friends, I have a question about god function.

[ns] Packet format issue

2013-05-02 Thread jose nmrd
hi everyone, is it correct (doesn't induce to errors) to put a dynamic structure in a packet header, for example in AODV request header put a pointer to a structure str {node_energy, next} to record the nodes energy along the request path? thx in advance.

Re: [ns] get a reference to a node from AODV [resolved].

2013-04-21 Thread jose nmrd
the following function definition you can create object of the node class.now using the c_node object of the node class you can access methinds of the node class. Node* c_node=Node::get_node_by_address(index); Regards,Itishi From: jose nmrd jose-...@hotmail.com To: itishi saxena itish

[ns] How to get a reference of a node from AODV?‏

2013-04-17 Thread jose nmrd
Hi everyone, here is the problem, i have added some code to the class Node to do some computations, i'm modifying the protocol AODV where i have to use the computations added in the class Node, but after looking at the class AODV composition there is just the address of the Node, not the

FW: [ns] How to get a reference of a node from AODV?‏

2013-04-17 Thread jose nmrd
other. I hope it will give you sufficient hint for your task. Itishi From: jose nmrd jose-...@hotmail.com To: ns-users@isi.edu ns-users@ISI.EDU Sent: Wednesday, 17 April 2013 5:30 PM Subject: [ns] How to get a reference of a node from AODV?‏ Hi everyone, here