#include <lltransfermanager.h>
Inheritance diagram for LLTransferSource:
Definition at line 285 of file lltransfermanager.h.
typedef std::map<LLTransferSourceType, LLTransferSourceCreateFunc> LLTransferSource::stype_scfunc_map [protected] |
Definition at line 334 of file lltransfermanager.h.
LLTransferSource::LLTransferSource | ( | const LLTransferSourceType | source_type, | |
const LLUUID & | request_id, | |||
const F32 | priority | |||
) | [protected] |
LLTransferSource::~LLTransferSource | ( | ) | [protected, virtual] |
Definition at line 1036 of file lltransfermanager.cpp.
void LLTransferSource::abortTransfer | ( | ) | [protected, virtual] |
Definition at line 1072 of file lltransfermanager.cpp.
References LLMessageSystem::addS32(), LLMessageSystem::addUUID(), completionCallback(), LLTransferSourceChannel::getChannelType(), LLTransferSourceChannel::getHost(), getID(), gMessageSystem, llendl, llinfos, LLTS_ABORT, mChannelp, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLMessageSystem::sendReliable().
Referenced by LLTransferManager::processTransferAbort(), and LLTransferManager::reliablePacketCallback().
virtual void LLTransferSource::completionCallback | ( | const LLTSCode | status | ) | [protected, pure virtual] |
Implemented in LLTransferSourceAsset, and LLTransferSourceFile.
Referenced by abortTransfer(), and sendTransferStatus().
LLTransferSource * LLTransferSource::createSource | ( | const LLTransferSourceType | stype, | |
const LLUUID & | request_id, | |||
const F32 | priority | |||
) | [static, protected] |
Definition at line 1102 of file lltransfermanager.cpp.
References llendl, LLTST_ASSET, llwarns, NULL, and sSourceCreateMap.
Referenced by LLTransferManager::processTransferRequest().
virtual LLTSCode LLTransferSource::dataCallback | ( | const S32 | packet_id, | |
const S32 | max_bytes, | |||
U8 ** | datap, | |||
S32 & | returned_bytes, | |||
BOOL & | delete_returned | |||
) | [protected, pure virtual] |
Implemented in LLTransferSourceAsset, and LLTransferSourceFile.
LLUUID LLTransferSource::getID | ( | ) | [inline] |
Definition at line 289 of file lltransfermanager.h.
References mID.
Referenced by abortTransfer(), LLTransferSourceAsset::initTransfer(), and sendTransferStatus().
virtual S32 LLTransferSource::getNextPacketID | ( | ) | [inline, protected, virtual] |
F32 LLTransferSource::getPriority | ( | ) | [inline, protected] |
Definition at line 321 of file lltransfermanager.h.
References mPriority.
Referenced by LLTransferSourceChannel::addTransferSource(), and sGetPriority().
virtual void LLTransferSource::initTransfer | ( | ) | [protected, pure virtual] |
Implemented in LLTransferSourceAsset, and LLTransferSourceFile.
Referenced by LLTransferManager::processTransferRequest().
virtual void LLTransferSource::packParams | ( | LLDataPacker & | dp | ) | const [protected, pure virtual] |
void LLTransferSource::registerSourceType | ( | const LLTransferSourceType | stype, | |
LLTransferSourceCreateFunc | ||||
) | [static, protected] |
Definition at line 1087 of file lltransfermanager.cpp.
References llendl, llerrs, and sSourceCreateMap.
Definition at line 1044 of file lltransfermanager.cpp.
References LLMessageSystem::addBinaryData(), LLMessageSystem::addS32(), LLMessageSystem::addUUID(), completionCallback(), LLTransferSourceChannel::deleteTransfer(), LLTransferSourceChannel::getChannelType(), LLDataPackerBinaryBuffer::getCurrentSize(), LLTransferSourceChannel::getHost(), getID(), gMessageSystem, LLTS_OK, LLTTT_UNKNOWN, MAX_PARAMS_SIZE, mChannelp, mSize, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), packParams(), S32, and LLMessageSystem::sendReliable().
Referenced by LLTransferSourceFile::initTransfer(), LLTransferSourceAsset::initTransfer(), and LLTransferSourceAsset::responderCallback().
Definition at line 322 of file lltransfermanager.h.
References mPriority.
Referenced by LLTransferSource(), and sSetPriority().
F32 LLTransferSource::sGetPriority | ( | LLTransferSource *& | tsp | ) | [static, protected] |
void LLTransferSource::sSetPriority | ( | LLTransferSource *& | tsp, | |
const F32 | priority | |||
) | [static, protected] |
virtual BOOL LLTransferSource::unpackParams | ( | LLDataPacker & | dp | ) | [protected, pure virtual] |
Implemented in LLTransferSourceAsset, and LLTransferSourceFile.
Referenced by LLTransferManager::processTransferRequest().
virtual F32 LLTransferSource::updatePriority | ( | ) | [protected, pure virtual] |
Implemented in LLTransferSourceAsset, and LLTransferSourceFile.
friend class LLTransferManager [friend] |
Definition at line 291 of file lltransfermanager.h.
friend class LLTransferSourceChannel [friend] |
Definition at line 292 of file lltransfermanager.h.
LLTransferSourceChannel* LLTransferSource::mChannelp [protected] |
Definition at line 339 of file lltransfermanager.h.
Referenced by abortTransfer(), LLTransferSourceChannel::addTransferSource(), LLTransferManager::reliablePacketCallback(), and sendTransferStatus().
LLUUID LLTransferSource::mID [protected] |
S32 LLTransferSource::mLastPacketID [protected] |
Definition at line 342 of file lltransfermanager.h.
Referenced by LLTransferSourceFile::dataCallback(), LLTransferSourceAsset::dataCallback(), getNextPacketID(), and setLastPacketID().
F32 LLTransferSource::mPriority [protected] |
S32 LLTransferSource::mSize [protected] |
Definition at line 341 of file lltransfermanager.h.
Referenced by LLTransferSourceFile::initTransfer(), LLTransferSourceAsset::responderCallback(), and sendTransferStatus().
LLTransferSourceType LLTransferSource::mType [protected] |
Definition at line 337 of file lltransfermanager.h.
LLTransferSource::stype_scfunc_map LLTransferSource::sSourceCreateMap [static, protected] |
Definition at line 335 of file lltransfermanager.h.
Referenced by createSource(), and registerSourceType().