use this as the timer in the headerfile class Timername : : public Handler { public: Timername(classname * a) : agent(a) {} void handle(Event*); private: classname *agent; Event event_ };
get an instance of the above class and use it where u want to use this as the timer in the c++ file of your protocol........ void Timername ::handle(Event*) { agent->functionname(); //the function called at regular interval givent in the interval double interval = time; assert(interval >= 0); Scheduler::instance().schedule(this, &event_, interval); } i hope this may be enough for u..... On 3/27/07, kerwin <[EMAIL PROTECTED]> wrote: > > -- Shailesh Gamit M.Tech (CSE), Nirma Institute of Technology, Ahmedabad, India