[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] NEW TIMER ERR IN AODV



HELLO ALL,

i am doing my project in aodv enhancements

i have my own timer.i have given below the code for timer

================================================================================
/*aodv.h*/
class LRRTimer : public Handler {
      friend class AODV;
public:
       LRRTimer(AODV* a) :agent(a){}
       void handle(Event*);
       int halted_;
//     int to_send;
/*please note down the above commented variable*/

protected :
       AODV *agent;
       Event intr;

};
================================================================================
/*aodv.cc*/

void
LRRTimer::handle(Event* p)
{
       struct hdr_cmn *ch = HDR_CMN((Packet *)p);
        if(halted_ != 1)
          {
             printf("IN(%d) no time out \n",ch->prev_hop_);
             return;
          }
        else
       {
       printf("IN(%d) LRR TIMER(time out %f)\n",ch->prev_hop_,CURRENT_TIME);
       rt_entry *rt;
     rt = agent->rtable.rt_lookup(ch->next_hop_);
        printf("I AM IN END OF PATH(my rt_flags=%d)\n",rt->rt_flags);

      /*leave this line*/
/* agent->sendProxyRequest(6,0);       */
        }
}

===============================================================================


in aodv.h ,aodv.cc i have  the code which is shown above.\
my part of the code to aodv is working perfectly if the variable (nsaddr_t 
to_send) is commented.
once,when the comment is released .everything goes wrong.prevoius results 
goes off.
what may the problem?
is there any limitation to the number of variables to the timer?
please help me out.


thanx in advace,


P. JayaChanthar,
room no 17,
SAP hostel
anna university,chennai
ph 044-2351809

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp