Creation of a New Agent in ns2 - NS2 Tutorial # 10

We know that the file is stored in the folder
~ns-2.35/pradeep/tspagent.cc

Open the file ns-2.35/Makefile.in
and make an entry of your own file (in this case, it is tspagent.cc

Find a vairable inside the Makefile.in called
OBJ_CC=
and make an entry there as shown below

pradeep/tspagent.o \


Save the file and open a terminal, go to the folder ~ns-2.35/ and execute the command one by one

$] ./configure
$] make

Correct any mistakes or errors in your .cc file and run the above commands.

Successful OTcl and C++ linkages....

Thank you and Stay tuned for more lectures

Next lecture will be on AODV protocol and its modification.

Refer my website nsnam.com for downloading the source code and refer my videos at
youtube.com/tspradeepkumar
share and subscribe.

Thank you......






 
Subscribe to My Youtube Channel - Engineering Clinic

Comments