[ns] R: Help in NS2

2012-05-09 Thread alessdebenedic...@libero.it
Looking at the Node class declaration (MobileNode class inherits from Node) you can find the public method: inline int address() { return address_;} So I think you can use the following: printf("TRG %.9f %d(%d,%d)@%d(%d,%d) d=%f xo=%f:", Scheduler::instance(). clock(), t->getNode()->address(),

[ns] recv method not reached

2012-05-09 Thread Ricard Alegre
Dear all, I have followed the work in: http://www.linuxquestions.org/questions/programming-9/ns2-how-receive-cbr-packets-at-my-own-agent-and-duplicate-them-for-new-destination-897086/ in order to implement an intermediate node that performs the following: - When receiving a packet duplicates

[ns] warning: no class variable Phy/WirelessPhy - while running wireless-demo-csci694.tcl

2012-05-09 Thread Sagar.Shimpi
Hi All, I am working on ns-2.34. I installed leach on it. When trying to run - # cd /root/ns/ns-allinone-2.34/ns-2.34/tcl/ex # ns wireless-demo-csci694.tcl I am getting the following error - Can anyone please help for the error below - === [ro