[ns] Implementing a new protocol in NS2

2010-03-06 Thread The Learner
://www.isi.edu/nsnam/ns/tutorial/ but I am not clear with the C code it uses to implement the new protocol in NS2. Kindly guide me with the same asap. Thank You. Regards, The Learner... -- View this message in context: http://old.nabble.com/Implementing-a-new-protocol-in-NS2-tp27803359p27803359

[ns] Number of agent classes and the constants.

2010-03-12 Thread The Learner
of the Agent class will be different or a same value for all the three classes? Hope to get a reply soon. Regards, The Learner. -- View this message in context: http://old.nabble.com/Number-of-agent-classes-and-the-constants.-tp27874121p27874121.html Sent from the ns-users mailing list archive

Re: [ns] Number of agent classes and the constants.

2010-03-12 Thread The Learner
...? Regards, The Learner -- View this message in context: http://old.nabble.com/Number-of-agent-classes-and-the-constants.-tp27874121p27874739.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] Addressing of nodes.

2010-03-13 Thread The Learner
-- View this message in context: http://old.nabble.com/Addressing-of-nodes.-tp27886731p27886731.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] Addressing of nodes while implementation of a routing protocol in Wireless sensor networks in NS2

2010-03-17 Thread The Learner
as the destination address, how do I know the address of node2 while implementing the code? Thank You, The Learner -- View this message in context: http://old.nabble.com/Addressing-of-nodes-while-implementation-of-a-routing-protocol-in-Wireless-sensor-networks-in-NS2-tp27929848p27929848.html Sent from

[ns] Make file

2010-03-19 Thread The Learner
Hi all While trying a new protocol, we need to make changes in the makefile. There are multiple makefiles( with extensions, .in, .vc), in which makefile am i suppose to add the object file list? and where? Also why should this be added? Thank You, The Learner -- View this message in context

[ns] How to recomplie ns2 using make command?

2010-03-19 Thread The Learner
-- View this message in context: http://old.nabble.com/How-to-recomplie-ns2-using-make-command--tp27950946p27950946.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] How to recomplie ns2 using make command?

2010-03-19 Thread The Learner
what is the procedure to recompile ns2 using make command? -- View this message in context: http://old.nabble.com/How-to-recomplie-ns2-using-make-command--tp27950947p27950947.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] Directional Antenna support in ns2.34?

2010-03-21 Thread The Learner
Hi all. I would like to know if ns-allinone-2.34 (2.34 version) provides support for Directional Antenna? Which file I should check for the in ns2 directory? Regards, The Learner. -- View this message in context: http://old.nabble.com/Directional-Antenna-support-in-ns2.34--tp27975754p27975754

[ns] Common header definition inside ns2 directory

2010-03-22 Thread The Learner
Hi. Which file in NS2 contains the definition of the common header (hdr_cmn)??? -- View this message in context: http://old.nabble.com/Common-header-definition-inside-ns2-directory-tp27985812p27985812.html Sent from the ns-users mailing list archive at Nabble.com.

Re: [ns] Common header definition inside ns2 directory

2010-03-22 Thread The Learner
to define various constants for each packet header,(PT_HDR1, PT_HDR2...etc). and use ch-ptype == PT_HDR1 to check the type of header in a packet. Please correct me if I am wrong. Thank You, The Learner. -- View this message in context: http://old.nabble.com/Common-header-definition-inside-ns2

[ns] Is common header a must in a packet and address type defined in config.h

2010-03-25 Thread The Learner
created my own type(typedef u_int8_t msaddr_t) in the config.h file. Will it siuffice or I need to do some other things to make ns2 work with this type of address? Thank You, The Learner -- View this message in context: http://old.nabble.com/Is-common-header-a-must-in-a-packet-and-address-type-defined

Re: [ns] Is common header a must in a packet and address type defined in config.h

2010-03-25 Thread The Learner
Thank you for your reply sir. I came to know that the value of ch-addr_type is NS_AF_INET(for internet protocol). It's value can be NS_AS_NONE; NS_AF_ILINK depending on what protocol is being implemented. While implementing a new protocol, how to decide what type should this be? If the

Re: [ns] How to recomplie ns2 using make command?

2010-03-26 Thread The Learner
it), or the package is not required, disable it with --with-tclcl=no. How do I check if tclcl is installed in ununbtu 9.10? If not what should I do? Regards, The Learner -- View this message in context: http://old.nabble.com/How-to-recomplie-ns2-using-make-command--tp27950947p28045359.html Sent from

[ns] Problem with using ./configure command in ns2 while recompiling ns2

2010-03-28 Thread The Learner
, what is the path//? If not, then how do I install it? Thank You, The Learner -- View this message in context: http://old.nabble.com/Problem-with-using-.-configure-command-in-ns2-while-recompiling-ns2-tp28060659p28060659.html Sent from the ns-users mailing list archive at Nabble.com.

Re: [ns] Problem with using ./configure command in ns2 while recompiling ns2

2010-03-29 Thread The Learner
-linkage.tcl files. I really seek you help in this. Thank You and Regards, The Learner -- View this message in context: http://old.nabble.com/Problem-with-using-.-configure-command-in-ns2-while-recompiling-ns2-tp28060659p28067571.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] Error with bind() function.

2010-04-07 Thread The Learner
msproto.h http://old.nabble.com/file/p28162719/msprotopkt.h msprotopkt.h Thanks and Regards, The Learner -- View this message in context: http://old.nabble.com/Error-with-bind%28%29-function.-tp28162719p28162719.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] Error with bind() function

2010-04-09 Thread The Learner
1 Does anybody have any idea what can rectify this error- The line using bind function is - bind(sector_id, sector_id_); Thanking You, The Learner -- View this message in context: http://old.nabble.com/Error-with-bind%28%29-function-tp28188357p28188357.html Sent from the ns-users mailing

[ns] Value of the Routing protocol [val(rp) ??? ]

2010-04-12 Thread The Learner
agent? Thanks and Regards, The Learner -- View this message in context: http://old.nabble.com/Value-of-the-Routing-protocol--val%28rp%29---tp28219215p28219215.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] How to call one function out of 2, using set nd [ns node] ???

2010-04-13 Thread The Learner
to be called while creating nodes using the statement set nd [ns node]...? Regards, The Learner -- View this message in context: http://old.nabble.com/How-to-call-one-function-out-of-2%2C-using-set-nd--ns-node--tp28219421p28219421.html Sent from the ns-users mailing list archive at Nabble.com.

[ns] Debugging ns code (.cc files) with print statements

2011-03-13 Thread Ns Learner
Hello, I am trying to debug ns code (.cc files) with print or cout statements. With cout, I get this error message: error: ISO C++ forbids declaration of ‘cout’ with no type error: expected ‘;’ before ‘’ token I tried inserting using namespace std and it still gives me an error message.

Re: [ns] Debugging ns code (.cc files) with print statements

2011-03-16 Thread Ns Learner
: [ns] Debugging ns code (.cc files) with print statements To: Ns Learner ns2.lear...@yahoo.com.au Received: Thursday, 17 March, 2011, 4:42 AM u can use printf, bu cout should works too!!! 2011/3/14 Ns Learner ns2.lear...@yahoo.com.au Hello, I am trying to debug ns code (.cc files) with print

Re: [ns] Debugging ns code (.cc files) with print statements

2011-03-16 Thread Ns Learner
: Re: [ns] Debugging ns code (.cc files) with print statements To: ns-users@ISI.EDU Received: Thursday, 17 March, 2011, 4:28 AM Ns Learner wrote: With cout, I get this error message: error: ISO C++ forbids declaration of ‘cout’ with no type error: expected ‘;’ before ‘’ token Do not use

Re: [ns] Debugging ns code (.cc files) with print statements

2011-03-17 Thread Ns Learner
is located and give ../../ns file1.tcl Thanks to my teachers who helped me by pointing out my mistake. --- On Thu, 17/3/11, Ns Learner ns2.lear...@yahoo.com.au wrote: From: Ns Learner ns2.lear...@yahoo.com.au Subject: Re: [ns] Debugging ns code (.cc files) with print statements To: pedro chaparro pdr