LLThrottle Class Reference

#include <llthrottle.h>

List of all members.

Public Member Functions

 LLThrottle (const F32 throttle=1.f)
 ~LLThrottle ()
void setRate (const F32 rate)
BOOL checkOverflow (const F32 amount)
BOOL throttleOverflow (const F32 amount)
F32 getAvailable ()
F32 getRate () const

Private Attributes

F32 mLookaheadSecs
F32 mRate
F32 mAvailable
F64 mLastSendTime


Detailed Description

Definition at line 42 of file llthrottle.h.


Constructor & Destructor Documentation

LLThrottle::LLThrottle ( const F32  throttle = 1.f  ) 

Definition at line 40 of file llthrottle.cpp.

References LLMessageSystem::getMessageTimeSeconds(), mAvailable, mLastSendTime, mLookaheadSecs, mRate, and TRUE.

Here is the call graph for this function:

LLThrottle::~LLThrottle (  )  [inline]

Definition at line 46 of file llthrottle.h.


Member Function Documentation

void LLThrottle::setRate ( const F32  rate  ) 

Definition at line 49 of file llthrottle.cpp.

References getAvailable(), LLMessageSystem::getMessageTimeSeconds(), mAvailable, mLastSendTime, and mRate.

Referenced by LLXferManager::setAckThrottleBPS(), LLPacketRing::setInBandwidth(), and LLPacketRing::setOutBandwidth().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLThrottle::checkOverflow ( const F32  amount  ) 

Definition at line 65 of file llthrottle.cpp.

References FALSE, LLMessageSystem::getMessageTimeSeconds(), mAvailable, mLastSendTime, mLookaheadSecs, mRate, and TRUE.

Referenced by LLPacketRing::receiveFromRing(), LLXferManager::retransmitUnackedPackets(), and LLPacketRing::sendPacket().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLThrottle::throttleOverflow ( const F32  amount  ) 

Definition at line 86 of file llthrottle.cpp.

References FALSE, LLMessageSystem::getMessageTimeSeconds(), mAvailable, mLastSendTime, mLookaheadSecs, mRate, and TRUE.

Referenced by LLPacketRing::receiveFromRing(), LLXferManager::retransmitUnackedPackets(), and LLPacketRing::sendPacket().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLThrottle::getAvailable (  ) 

Definition at line 57 of file llthrottle.cpp.

References LLMessageSystem::getMessageTimeSeconds(), mAvailable, mLastSendTime, and mRate.

Referenced by setRate().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLThrottle::getRate (  )  const [inline]

Definition at line 53 of file llthrottle.h.

References mRate.


Member Data Documentation

Definition at line 55 of file llthrottle.h.

Referenced by checkOverflow(), LLThrottle(), and throttleOverflow().

Definition at line 56 of file llthrottle.h.

Referenced by checkOverflow(), getAvailable(), getRate(), LLThrottle(), setRate(), and throttleOverflow().

Definition at line 57 of file llthrottle.h.

Referenced by checkOverflow(), getAvailable(), LLThrottle(), setRate(), and throttleOverflow().

Definition at line 58 of file llthrottle.h.

Referenced by checkOverflow(), getAvailable(), LLThrottle(), setRate(), and throttleOverflow().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:15:34 2008 for SecondLife by  doxygen 1.5.5