[ns] Remaining energy for sensor node - Pouria

2011-08-28 Thread Pouria P
Hi buddies. Nice time. 3 emergency questions !   1 : How I do calculate remaining energy for each node? (it's for sensor networks) 2 : How I can count number of recieved packet for reciever node? 3 : I want just "one" packet from sender node. is that possible? and how ?   Te quiero. Pouria

[ns] Segmentation Fault !

2011-08-28 Thread Pouria P
Hi friends. I was going to change "aodv.h" and "aodv.cc" for getting node position & energy. +++ aodv.h changes :   #include . . . double xpos; double ypos; double zpos; double iEnergy; MobileNode *iNode; . . +