[ns] sending packets from objects within agent
Hi, i have implemented a routing agent for ad-hoc routing, but i have a problem: the agent attached to a node has several 'roles', so the agent has a central subclass of agent, and contains several objects which take care of different behaviours. Now i need to send packets from those objects - how should i transmit the Scheduler used in the central agent ? Or should i just transmit target_ ? (or should i use another way to get those packets sent ?) (i use ns-2.29) Masters of ns ;-) , i hope you can help me ! thanks, Elise _ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be
[ns] changing Tcl script
Hi, i have implemented a new ad-hoc routing agent on ns-2.29. When i use it, i get a Tcl error message, which i can more or less figure out. So i change the script concerned, but when i run my test again, i get the SAME error message, displaying a bit of code that i have changed, without the changes ! I am a newbie at Tcl, but i had gathered, that being a script language you didn't need to compile it. Is there something i should do so that the changes are taken into account ? Thanks, Elise _ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be
[ns] statement has no effect with CURRENT_TIME
Hi, like pretty much everyone on this mailing list, i'm implementing an ad-hoc routing agent. My code compiles and is built into ns - however i have a warning : warning: statement has no effect for pretty much every line looking like : expire_time = CURRENT_TIME + nb_freshness_*t_br_; (i have a few) - so that's a bit worrying. CURRENT_TIME is defined as : #define CURRENT_TIME Scheduler::instance().clock(); this doesn't seem to be related to any weird loop, so i wonder what is wrong ? thanks Elise _ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be
[ns] retrieving node from routing agent in ad-hoc routing
Is it possible to access the node object (or better yet, the mobilenode object), from the routing agent ? For instance in AODV, is it possible to retrieve the node object, using for instance the address (index) ? Thank you, Elise (using ns-2.29) _ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be
[ns] access position information
Hi, i see that mobilenode possesses position information. Is this information also available to the ad-hoc routing agent ? If not, would it be possible to access it ? (the link to mobile node and routing agent is not entirely clear to me yet) Thank you, Elise _ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be