#include <aodv.h>
Inheritance diagram for HelloTimer:


Public Member Functions | |
| HelloTimer (AODV *a) | |
| void | handle (Event *) |
Private Attributes | |
| AODV * | agent |
| Event | intr |
|
|
Definition at line 140 of file aodv.h. References agent.
00140 : agent(a) {} |
|
|
Implements Handler. Definition at line 160 of file aodv.cc. References agent, Scheduler::instance(), intr, MaxHelloInterval, MinHelloInterval, Scheduler::schedule(), AODV::sendHello(), and Random::uniform(). Referenced by AODV::command().
00160 {
00161 agent->sendHello();
00162 double interval = MinHelloInterval +
00163 ((MaxHelloInterval - MinHelloInterval) * Random::uniform());
00164 assert(interval >= 0);
00165 Scheduler::instance().schedule(this, &intr, interval);
00166 }
|
Here is the call graph for this function:

|
|
Definition at line 143 of file aodv.h. Referenced by handle(), and HelloTimer(). |
|
|
Definition at line 144 of file aodv.h. Referenced by handle(). |
1.3.3