#include <dsragent.h>
Inheritance diagram for SendBufferTimer:


Definition at line 103 of file dsragent.h.
Public Types | |
| enum | TimerStatus { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING } |
Public Member Functions | |
| void | cancel () |
| void | expire (Event *e) |
| void | force_cancel () |
| void | resched (double delay) |
| void | sched (double delay) |
| SendBufferTimer (DSRAgent *a) | |
| int | status () |
Protected Member Functions | |
| virtual void | handle (Event *) |
Protected Attributes | |
| DSRAgent * | a_ |
| Event | event_ |
| int | status_ |
|
|
Definition at line 94 of file timer-handler.h. 00094 { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING };
|
|
|
Definition at line 105 of file dsragent.h. 00105 : TimerHandler() { a_ = a;}
|
|
|
|
Implements TimerHandler. Definition at line 221 of file dsragent.cc. References a_, BUFFER_CHECK, TimerHandler::resched(), DSRAgent::sendBufferCheck(), and Random::uniform(). 00222 { 00223 a_->sendBufferCheck(); 00224 resched(BUFFER_CHECK + BUFFER_CHECK * Random::uniform(1.0)); 00225 }
Here is the call graph for this function: ![]() |
|
|
|
Implements Handler. Reimplemented in EmpFtpTrafSession, EmpWebPage, EmpWebTrafSession, HBTimer, WebPage, and WebTrafSession. Definition at line 94 of file timer-handler.cc. References abort(), TimerHandler::expire(), TimerHandler::status_, TimerHandler::TIMER_HANDLING, TimerHandler::TIMER_IDLE, and TimerHandler::TIMER_PENDING. Referenced by WebTrafSession::handle(), WebPage::handle(), HBTimer::handle(), EmpWebTrafSession::handle(), EmpWebPage::handle(), and EmpFtpTrafSession::handle(). 00095 { 00096 if (status_ != TIMER_PENDING) // sanity check 00097 abort(); 00098 status_ = TIMER_HANDLING; 00099 expire(e); 00100 // if it wasn't rescheduled, it's done 00101 if (status_ == TIMER_HANDLING) 00102 status_ = TIMER_IDLE; 00103 }
Here is the call graph for this function: ![]() |
|
|
|
|
|
Definition at line 108 of file dsragent.h. Referenced by expire(), and SendBufferTimer(). |
|
|
Definition at line 103 of file timer-handler.h. Referenced by TimerHandler::_cancel(), TimerHandler::_sched(), WebPage::start(), and EmpWebPage::start(). |
|
1.4.6