Hi all We read and heard a lot about " How to Implement a new routing algorithm", but as a necessary requirement for implementing a new protocol, it's necessary to access the distance between nodes, their location or their residual energy. I know the way of access to such information through tcl but how about it through c++ code? A probably answer is getloc, but how to use it? Regards sajad m