#include <lltransfermanager.h>
Collaboration diagram for LLTransferSourceChannel:
Public Member Functions | |
LLTransferSourceChannel (const LLTransferChannelType channel_type, const LLHost &host) | |
virtual | ~LLTransferSourceChannel () |
void | updateTransfers () |
void | updatePriority (LLTransferSource *tsp, const F32 priority) |
void | addTransferSource (LLTransferSource *sourcep) |
LLTransferSource * | findTransferSource (const LLUUID &transfer_id) |
BOOL | deleteTransfer (LLTransferSource *tsp) |
void | setThrottleID (const S32 throttle_id) |
LLTransferChannelType | getChannelType () const |
LLHost | getHost () const |
Protected Types | |
typedef std::list< LLTransferSource * >::iterator | ts_iter |
Protected Attributes | |
LLTransferChannelType | mChannelType |
LLHost | mHost |
LLPriQueueMap< LLTransferSource * > | mTransferSources |
S32 | mThrottleID |
Definition at line 194 of file lltransfermanager.h.
typedef std::list<LLTransferSource *>::iterator LLTransferSourceChannel::ts_iter [protected] |
Definition at line 215 of file lltransfermanager.h.
LLTransferSourceChannel::LLTransferSourceChannel | ( | const LLTransferChannelType | channel_type, | |
const LLHost & | host | |||
) |
Definition at line 709 of file lltransfermanager.cpp.
LLTransferSourceChannel::~LLTransferSourceChannel | ( | ) | [virtual] |
Definition at line 718 of file lltransfermanager.cpp.
References end, LLPriQueueMap< DATA_TYPE >::mMap, and mTransferSources.
void LLTransferSourceChannel::addTransferSource | ( | LLTransferSource * | sourcep | ) |
Definition at line 855 of file lltransfermanager.cpp.
References LLTransferSource::getPriority(), LLTransferSource::mChannelp, mTransferSources, and LLPriQueueMap< DATA_TYPE >::push().
Referenced by LLTransferManager::processTransferRequest().
BOOL LLTransferSourceChannel::deleteTransfer | ( | LLTransferSource * | tsp | ) |
Definition at line 877 of file lltransfermanager.cpp.
References FALSE, llendl, llerrs, LLPriQueueMap< DATA_TYPE >::mMap, mTransferSources, and TRUE.
Referenced by LLTransferManager::processTransferAbort(), LLTransferManager::reliablePacketCallback(), and LLTransferSource::sendTransferStatus().
LLTransferSource * LLTransferSourceChannel::findTransferSource | ( | const LLUUID & | transfer_id | ) |
Definition at line 862 of file lltransfermanager.cpp.
References LLPriQueueMap< DATA_TYPE >::mMap, mTransferSources, and NULL.
Referenced by LLTransferManager::processTransferAbort(), and LLTransferManager::processTransferRequest().
LLTransferChannelType LLTransferSourceChannel::getChannelType | ( | ) | const [inline] |
Definition at line 211 of file lltransfermanager.h.
References mChannelType.
Referenced by LLTransferSource::abortTransfer(), LLTransferSource::sendTransferStatus(), and updateTransfers().
LLHost LLTransferSourceChannel::getHost | ( | ) | const [inline] |
Definition at line 212 of file lltransfermanager.h.
References mHost.
Referenced by LLTransferSource::abortTransfer(), LLTransferSource::sendTransferStatus(), and updateTransfers().
void LLTransferSourceChannel::updatePriority | ( | LLTransferSource * | tsp, | |
const F32 | priority | |||
) |
Definition at line 733 of file lltransfermanager.cpp.
References mTransferSources, and LLPriQueueMap< DATA_TYPE >::reprioritize().
void LLTransferSourceChannel::updateTransfers | ( | ) |
Definition at line 738 of file lltransfermanager.cpp.
References LLMessageSystem::addBinaryData(), LLMessageSystem::addS32(), LLTransferManager::addTransferBitsOut(), LLMessageSystem::addUUID(), LLThrottleGroup::checkOverflow(), DEFAULT_PACKET_SIZE, f, FALSE, LLCircuit::findCircuit(), getChannelType(), LLMessageSystem::getCurrentSendTotal(), getHost(), LLCircuitData::getThrottleGroup(), gMessageSystem, gTransferManager, LLCircuitData::isBlocked(), LL_DEFAULT_RELIABLE_RETRIES, llendl, llerrs, LLTS_DONE, LLTS_ERROR, LLTS_OK, LLTS_SKIP, llwarns, mChannelType, LLMessageSystem::mCircuitInfo, LLPriQueueMap< DATA_TYPE >::mMap, mThrottleID, mTransferSources, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), NULL, LLTransferManager::reliablePacketCallback(), S32, LLMessageSystem::sendReliable(), LLThrottleGroup::throttleOverflow(), and TRUE.
Definition at line 217 of file lltransfermanager.h.
Referenced by getChannelType(), and updateTransfers().
LLHost LLTransferSourceChannel::mHost [protected] |
S32 LLTransferSourceChannel::mThrottleID [protected] |
Definition at line 222 of file lltransfermanager.h.
Referenced by setThrottleID(), and updateTransfers().
Definition at line 219 of file lltransfermanager.h.
Referenced by addTransferSource(), deleteTransfer(), findTransferSource(), updatePriority(), updateTransfers(), and ~LLTransferSourceChannel().