#include <lltransfermanager.h>
Collaboration diagram for LLTransferManager:
Definition at line 111 of file lltransfermanager.h.
typedef std::map<LLHost, LLTransferConnection *> LLTransferManager::host_tc_map [protected] |
Definition at line 150 of file lltransfermanager.h.
LLTransferManager::LLTransferManager | ( | ) |
Definition at line 56 of file lltransfermanager.cpp.
References i, LLTTT_NUM_TYPES, mTransferBitsIn, mTransferBitsOut, and S32.
LLTransferManager::~LLTransferManager | ( | ) | [virtual] |
void LLTransferManager::addTransferBitsIn | ( | const LLTransferChannelType | tctype, | |
const S32 | bits | |||
) | [inline] |
Definition at line 142 of file lltransfermanager.h.
References mTransferBitsIn.
Referenced by processTransferPacket().
void LLTransferManager::addTransferBitsOut | ( | const LLTransferChannelType | tctype, | |
const S32 | bits | |||
) | [inline] |
Definition at line 143 of file lltransfermanager.h.
References mTransferBitsOut.
Referenced by LLTransferSourceChannel::updateTransfers().
void LLTransferManager::cleanup | ( | ) |
Definition at line 94 of file lltransfermanager.cpp.
References FALSE, mTransferConnections, and mValid.
Referenced by cleanup_app(), end_messaging_system(), and ~LLTransferManager().
Definition at line 117 of file lltransfermanager.cpp.
References mTransferConnections.
Referenced by LLCircuitData::~LLCircuitData().
LLTransferSource * LLTransferManager::findTransferSource | ( | const LLUUID & | transfer_id | ) |
Definition at line 175 of file lltransfermanager.cpp.
References mTransferConnections, and NULL.
Referenced by reliablePacketCallback(), and LLTransferSourceAsset::responderCallback().
LLTransferSourceChannel * LLTransferManager::getSourceChannel | ( | const LLHost & | host, | |
const LLTransferChannelType | stype | |||
) |
Definition at line 148 of file lltransfermanager.cpp.
References LLTransferConnection::getSourceChannel(), getTransferConnection(), and NULL.
Referenced by processTransferAbort(), and processTransferRequest().
LLTransferTargetChannel * LLTransferManager::getTargetChannel | ( | const LLHost & | host, | |
const LLTransferChannelType | stype | |||
) |
Definition at line 160 of file lltransfermanager.cpp.
References LLTransferConnection::getTargetChannel(), getTransferConnection(), and NULL.
Referenced by LLAssetStorage::getEstateAsset(), LLAssetStorage::getInvItemAsset(), processTransferAbort(), processTransferInfo(), and processTransferPacket().
S32 LLTransferManager::getTransferBitsIn | ( | const LLTransferChannelType | tctype | ) | const [inline] |
Definition at line 138 of file lltransfermanager.h.
References mTransferBitsIn.
Referenced by update_statistics().
S32 LLTransferManager::getTransferBitsOut | ( | const LLTransferChannelType | tctype | ) | const [inline] |
LLTransferConnection * LLTransferManager::getTransferConnection | ( | const LLHost & | host | ) | [protected] |
Definition at line 134 of file lltransfermanager.cpp.
References mTransferConnections.
Referenced by getSourceChannel(), and getTargetChannel().
void LLTransferManager::init | ( | ) |
Definition at line 78 of file lltransfermanager.cpp.
References gMessageSystem, llendl, llerrs, mValid, NULL, processTransferAbort(), processTransferInfo(), processTransferPacket(), processTransferRequest(), LLMessageSystem::setHandlerFunc(), and TRUE.
Referenced by start_messaging_system().
BOOL LLTransferManager::isValid | ( | ) | const [inline] |
void LLTransferManager::processTransferAbort | ( | LLMessageSystem * | mesgsys, | |
void ** | ||||
) | [static] |
Definition at line 565 of file lltransfermanager.cpp.
References LLTransferSource::abortTransfer(), LLTransferTarget::abortTransfer(), LLTransferSourceChannel::deleteTransfer(), LLTransferTargetChannel::deleteTransfer(), LLTransferSourceChannel::findTransferSource(), LLTransferTargetChannel::findTransferTarget(), LLMessageSystem::getS32(), LLMessageSystem::getSender(), getSourceChannel(), getTargetChannel(), LLMessageSystem::getUUID(), gTransferManager, llendl, llwarns, and S32.
Referenced by init().
void LLTransferManager::processTransferInfo | ( | LLMessageSystem * | mesgsys, | |
void ** | ||||
) | [static] |
Definition at line 273 of file lltransfermanager.cpp.
References LLTransferTarget::abortTransfer(), LLTransferTarget::completionCallback(), LLTransferTarget::dataCallback(), LLTransferTargetChannel::deleteTransfer(), LLTransferTargetChannel::findTransferTarget(), LLMessageSystem::getBinaryData(), LLTransferTarget::getNextPacketID(), LLMessageSystem::getS32(), LLMessageSystem::getSender(), LLMessageSystem::getSize(), getTargetChannel(), LLMessageSystem::getUUID(), gTransferManager, llendl, llinfos, LLTS_DONE, LLTS_OK, llwarns, MAX_PACKET_DATA_SIZE, MAX_PARAMS_SIZE, LLTransferTarget::mDelayedPacketMap, NULL, S32, LLTransferTarget::setGotInfo(), LLTransferTarget::setLastPacketID(), LLTransferTarget::setSize(), size, TRUE, and LLTransferTarget::unpackParams().
Referenced by init().
void LLTransferManager::processTransferPacket | ( | LLMessageSystem * | mesgsys, | |
void ** | ||||
) | [static] |
Definition at line 411 of file lltransfermanager.cpp.
References LLTransferTarget::abortTransfer(), LLTransferTarget::addDelayedPacket(), addTransferBitsIn(), LLTransferTarget::completionCallback(), LLTransferTarget::dataCallback(), LLTransferTargetChannel::deleteTransfer(), FALSE, LLTransferTargetChannel::findTransferTarget(), LLMessageSystem::getBinaryData(), LLTransferTarget::getNextPacketID(), LLMessageSystem::getReceiveCompressedSize(), LLMessageSystem::getReceiveSize(), LLMessageSystem::getS32(), LLMessageSystem::getSender(), LLMessageSystem::getSize(), getTargetChannel(), LLMessageSystem::getUUID(), LLTransferTarget::gotInfo(), gTransferManager, llendl, LLTS_DONE, LLTS_OK, llwarns, MAX_PACKET_DATA_SIZE, LLTransferTargetChannel::mChannelType, LLTransferTarget::mDelayedPacketMap, NULL, S32, LLTransferTarget::setLastPacketID(), size, and TRUE.
Referenced by init().
void LLTransferManager::processTransferRequest | ( | LLMessageSystem * | mesgsys, | |
void ** | ||||
) | [static] |
Definition at line 204 of file lltransfermanager.cpp.
References LLTransferSourceChannel::addTransferSource(), LLTransferSource::createSource(), LLTransferSourceChannel::findTransferSource(), LLMessageSystem::getBinaryData(), LLMessageSystem::getF32(), LLMessageSystem::getS32(), LLMessageSystem::getSender(), LLMessageSystem::getSize(), getSourceChannel(), LLMessageSystem::getUUID(), gTransferManager, LLTransferSource::initTransfer(), llendl, llwarns, MAX_PARAMS_SIZE, S32, size, and LLTransferSource::unpackParams().
Referenced by init().
Definition at line 607 of file lltransfermanager.cpp.
References LLTransferSource::abortTransfer(), LLTransferSourceChannel::deleteTransfer(), findTransferSource(), gTransferManager, llendl, llwarns, and LLTransferSource::mChannelp.
Referenced by LLTransferSourceChannel::updateTransfers().
void LLTransferManager::resetTransferBitsIn | ( | const LLTransferChannelType | tctype | ) | [inline] |
Definition at line 140 of file lltransfermanager.h.
References mTransferBitsIn.
Referenced by update_statistics().
void LLTransferManager::resetTransferBitsOut | ( | const LLTransferChannelType | tctype | ) | [inline] |
void LLTransferManager::updateTransfers | ( | ) |
Definition at line 107 of file lltransfermanager.cpp.
References mTransferConnections.
Referenced by LLMessageSystem::processAcks().
LLHost LLTransferManager::mHost [protected] |
Definition at line 153 of file lltransfermanager.h.
S32 LLTransferManager::mTransferBitsIn[LLTTT_NUM_TYPES] [protected] |
Definition at line 155 of file lltransfermanager.h.
Referenced by addTransferBitsIn(), getTransferBitsIn(), LLTransferManager(), and resetTransferBitsIn().
S32 LLTransferManager::mTransferBitsOut[LLTTT_NUM_TYPES] [protected] |
Definition at line 156 of file lltransfermanager.h.
Referenced by addTransferBitsOut(), getTransferBitsOut(), LLTransferManager(), and resetTransferBitsOut().
host_tc_map LLTransferManager::mTransferConnections [protected] |
Definition at line 159 of file lltransfermanager.h.
Referenced by cleanup(), cleanupConnection(), findTransferSource(), getTransferConnection(), and updateTransfers().
BOOL LLTransferManager::mValid [protected] |
Definition at line 152 of file lltransfermanager.h.
Referenced by cleanup(), init(), isValid(), and ~LLTransferManager().