#include <diffusion.h>
Inheritance diagram for SendBufTimer:


Definition at line 132 of file diffusion.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) |
| SendBufTimer (DiffusionAgent *a) | |
| int | status () |
Protected Member Functions | |
| virtual void | handle (Event *) |
Protected Attributes | |
| DiffusionAgent * | a_ |
| Event | event_ |
| int | status_ |
|
|
Definition at line 94 of file timer-handler.h. 00094 { TIMER_IDLE, TIMER_PENDING, TIMER_HANDLING };
|
|
|
Definition at line 134 of file diffusion.h. 00134 : TimerHandler() { a_ = a; }
|
|
|
|
Implements TimerHandler. Definition at line 114 of file diffusion.cc. References a_, TimerHandler::resched(), SEND_BUFFER_CHECK, and DiffusionAgent::SendBufferCheck(). 00115 { 00116 a_->SendBufferCheck(); 00117 resched(SEND_BUFFER_CHECK + SEND_BUFFER_CHECK * (double) ((long) e>>5 & 0xff)/256.0); 00118 }
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 137 of file diffusion.h. Referenced by expire(), and SendBufTimer(). |
|
|
Definition at line 103 of file timer-handler.h. Referenced by TimerHandler::_cancel(), TimerHandler::_sched(), WebPage::start(), and EmpWebPage::start(). |
|
1.4.6