#include <llthrottle.h>
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 |
Definition at line 42 of file llthrottle.h.
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.
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 49 of file llthrottle.cpp.
References getAvailable(), LLMessageSystem::getMessageTimeSeconds(), mAvailable, mLastSendTime, and mRate.
Referenced by LLXferManager::setAckThrottleBPS(), LLPacketRing::setInBandwidth(), and LLPacketRing::setOutBandwidth().
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().
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().