[ns] "sharing information between classes"
Mallapur Veerayya
mallapur at ee.iitb.ac.in
Sun Sep 9 07:04:24 PDT 2007
Hello NS users,
I am implementing a cross layer design in
which I need to share some information
between WirelessPhy class and AODV class.
For this I need a pointer to refer to
WirelessPhy object in AODV class. Can somebody
please give some idea or code to do this.
class WirelessPhy : public Phy {
public:
WirelessPhy();
...
...
..
}
class AODV: public Agent {
public:
AODV(nsaddr_t id);
....
...
..
..
}
Thanks in advance
veerayya
More information about the Ns-users
mailing list