hi,

i guess you can use something like this

--------------------------------
Agent/DSR set pbw   [Phy/WirelessPhy set bandwidth_] 
---------------------------

in your simulation (.tcl) file.

Now you can access this from your .cc file as follows:

---------------------
double bandw;
bind("pbw",&bandw);
----------------------

Ofcourse "Agent/DSR" can be changed depending on the protocol you are 
working on.

Hope this helps,
Vinod

----------------------
Vinod Kone,
Btech,Computer Science,
VIII sem,
Room 177,Kapili,
IIT Guwahati.

Reply via email to