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.

LLThrottle::~LLThrottle (  )  [inline]

Definition at line 46 of file llthrottle.h.


Member Function Documentation

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().

F32 LLThrottle::getAvailable (  ) 

Definition at line 57 of file llthrottle.cpp.

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

Referenced by setRate().

F32 LLThrottle::getRate (  )  const [inline]

Definition at line 53 of file llthrottle.h.

References mRate.

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().

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().


Member Data Documentation

F32 LLThrottle::mAvailable [private]

Definition at line 57 of file llthrottle.h.

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

F64 LLThrottle::mLastSendTime [private]

Definition at line 58 of file llthrottle.h.

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

F32 LLThrottle::mLookaheadSecs [private]

Definition at line 55 of file llthrottle.h.

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

F32 LLThrottle::mRate [private]

Definition at line 56 of file llthrottle.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:51 2010 for Second Life Viewer by  doxygen 1.4.7