Viewing 0 reply threads
You must be logged in to reply to this topic.
I hope that you don’t need to implement a timer.
Refer the code of routing protocols such as DSR. There you may find the usage of a timer.
For example, in DSR, you will find this timer code in DSRAgent.h
class SendBufferTimer : public TimerHandler {
public:
SendBufferTimer(DSRAgent *a) : TimerHandler() { a_ = a;}
void expire(Event *e);
protected:
DSRAgent *a_;
};
You must be logged in to reply to this topic.
Discuss Through WhatsApp