I need to pass values from my tcl file to aodv.cc.... when i used the
following code with a new agent, i created, it works... But it did not work
when i use it in aodv.cc file...

my codes are as follows:
AODV::AODV(nsaddr_t id) : Agent(PT_AODV),
                          btimer(this), htimer(this), ntimer(this),
                          rtimer(this), lrtimer(this), rqueue() {
   bind("totalnodes_",&totalnodes_);
}
In TCL:
  set aodv1 [new Agent/AODV]
  $aodv1 set totalnodes_ 25
  $ns_ attach-agent $node_(0) $aodv1

also i've initialized the variable in ns-default.tcl as zero....

but i could not retrieve the variable in aodv.cc?

Can anyone please help me? Thanks in advance....
-- 
No Man Is An Island.....
Vidhya.S,

Reply via email to