Timer for removing link tuples: OLSR_link_tuple. More...
#include <OLSR.h>
Public Member Functions | |
| OLSR_LinkTupleTimer (OLSR *agent, OLSR_link_tuple *tuple) | |
| OLSR_LinkTupleTimer (OLSR *agent, OLSR_link_tuple *tuple) | |
Protected Member Functions | |
| virtual void | expire (Event *e) |
| Removes tuple_ if expired. Else if symmetric time has expired then it is assumed a neighbor loss and agent_->nb_loss() is called. In this case the timer is rescheduled to expire at tuple_->time(). Otherwise the timer is rescheduled to expire at the minimum between tuple_->time() and tuple_->sym_time(). | |
| virtual void | expire (Event *e) |
Protected Attributes | |
| OLSR * | agent_ |
| OLSR agent which created the timer. | |
| OLSR_link_tuple * | tuple_ |
| OLSR_link_tuple which must be removed. | |
Timer for removing link tuples: OLSR_link_tuple.
| void OLSR_LinkTupleTimer::expire | ( | Event * | e | ) | [protected, virtual] |
Removes tuple_ if expired. Else if symmetric time has expired then it is assumed a neighbor loss and agent_->nb_loss() is called. In this case the timer is rescheduled to expire at tuple_->time(). Otherwise the timer is rescheduled to expire at the minimum between tuple_->time() and tuple_->sym_time().
The task of actually removing the tuple is left to the OLSR agent.
| e | The event which has expired. |
Implements TimerHandler.
1.7.1