[ns] packet forwarding to neighbours

2011-05-19 Thread Sudhanshu Pant

Hi
Could anybody please tell me a simple(ABC) example code for sending a new
packet to the neighbor nodes. The packet may contain a certain info. which
we want to send to the neighbor nodes. Please help.
-- 
Thanks and Regards
Sudhanshu Pant
M. Tech. NITH
Hamirpur, H.P.


[ns] Packet Forwarding to neighbor nodes

2011-05-19 Thread Sudhanshu Pant

Hi
Could anybody please tell me a simple(ABC) example code for sending a new
packet to the neighbor nodes. The packet may contain a certain info. which
we want to send to the neighbor nodes. Please help.

-- 
Thanks and Regards
Sudhanshu Pant
M. Tech. NITH
Hamirpur, H.P.


[ns] Guidance for How to start with my algo

2011-04-12 Thread Sudhanshu Pant

HI
i m working on WSNs
my algo requires flooding a message to all the nodes periodically.
on receiving the message by a node , its coordinates decides whether it
should be made a dissemination node or not.
kindly suggest me how to start with this
i mean which classes and methods are required for this, and in which file i
should implement it. like which thing in .cc file and which in .tcl file.
this is somewhat same as TTDD ,if somebody is having the code for the same
plz send it also.


Sudhanshu Pant


[ns] compiling .cc file

2011-04-07 Thread Sudhanshu Pant

HI
i am a newbie in ns2 and i need a simple example of how to use .cc and .tcl
file simultaneously
like i need a simple .cc file which contain a simple class n its method
should be self defined (eg. to print the nodes coordinates or just hello
world)
and these methods should be called from tcl file
also i need to know how to compile the created .cc file (actually i need the
full procedure).
i m using ns2.34

-- 
Thanks and Regards
Sudhanshu Pant
M. Tech. NITH
Hamirpur, H.P.


[ns] finding node by location

2011-04-06 Thread Sudhanshu Pant

Hi
i want to know if the coordinates are given, then how to reretrieve the node
located at that location or around the coordinate.
like
If(location = x,y) then
{make the node root}

-- 

Sudhanshu Pant




--