Tuesday, April 1, 2008

get a reference to node at wireless physical layer

Both Class wirelessPhy and Phy provide a function to access its protected member node_, which refers to its node object. For example, if one wants to know the node id in the physical layer, use the following command:

node()->nodeid(), which returns an integer.

Powered by ScribeFire.

No comments: