LLTransferManager Class Reference

#include <lltransfermanager.h>

Collaboration diagram for LLTransferManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTransferManager ()
virtual ~LLTransferManager ()
void init ()
void cleanup ()
void updateTransfers ()
void cleanupConnection (const LLHost &host)
LLTransferSourceChannelgetSourceChannel (const LLHost &host, const LLTransferChannelType stype)
LLTransferTargetChannelgetTargetChannel (const LLHost &host, const LLTransferChannelType stype)
LLTransferSourcefindTransferSource (const LLUUID &transfer_id)
BOOL isValid () const
S32 getTransferBitsIn (const LLTransferChannelType tctype) const
S32 getTransferBitsOut (const LLTransferChannelType tctype) const
void resetTransferBitsIn (const LLTransferChannelType tctype)
void resetTransferBitsOut (const LLTransferChannelType tctype)
void addTransferBitsIn (const LLTransferChannelType tctype, const S32 bits)
void addTransferBitsOut (const LLTransferChannelType tctype, const S32 bits)

Static Public Member Functions

static void processTransferRequest (LLMessageSystem *mesgsys, void **)
static void processTransferInfo (LLMessageSystem *mesgsys, void **)
static void processTransferPacket (LLMessageSystem *mesgsys, void **)
static void processTransferAbort (LLMessageSystem *mesgsys, void **)
static void reliablePacketCallback (void **, S32 result)

Protected Types

typedef std::map< LLHost,
LLTransferConnection * > 
host_tc_map

Protected Member Functions

LLTransferConnectiongetTransferConnection (const LLHost &host)
BOOL removeTransferConnection (const LLHost &host)

Protected Attributes

BOOL mValid
LLHost mHost
S32 mTransferBitsIn [LLTTT_NUM_TYPES]
S32 mTransferBitsOut [LLTTT_NUM_TYPES]
host_tc_map mTransferConnections

Detailed Description

Definition at line 111 of file lltransfermanager.h.


Member Typedef Documentation

typedef std::map<LLHost, LLTransferConnection *> LLTransferManager::host_tc_map [protected]

Definition at line 150 of file lltransfermanager.h.


Constructor & Destructor Documentation

LLTransferManager::LLTransferManager (  ) 

Definition at line 56 of file lltransfermanager.cpp.

References i, LLTTT_NUM_TYPES, mTransferBitsIn, mTransferBitsOut, and S32.

LLTransferManager::~LLTransferManager (  )  [virtual]

Definition at line 68 of file lltransfermanager.cpp.

References cleanup(), llendl, llwarns, and mValid.


Member Function Documentation

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

void LLTransferManager::cleanupConnection ( const LLHost host  ) 

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]

Definition at line 139 of file lltransfermanager.h.

References mTransferBitsOut.

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]

Definition at line 129 of file lltransfermanager.h.

References mValid.

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

void LLTransferManager::reliablePacketCallback ( void **  ,
S32  result 
) [static]

Definition at line 607 of file lltransfermanager.cpp.

References LLTransferSource::abortTransfer(), LLTransferSourceChannel::deleteTransfer(), findTransferSource(), gTransferManager, llendl, llwarns, and LLTransferSource::mChannelp.

Referenced by LLTransferSourceChannel::updateTransfers().

BOOL LLTransferManager::removeTransferConnection ( const LLHost host  )  [protected]

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]

Definition at line 141 of file lltransfermanager.h.

References mTransferBitsOut.

void LLTransferManager::updateTransfers (  ) 

Definition at line 107 of file lltransfermanager.cpp.

References mTransferConnections.

Referenced by LLMessageSystem::processAcks().


Member Data Documentation

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


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