LLTransferSourceChannel Class Reference

#include <lltransfermanager.h>

Collaboration diagram for LLTransferSourceChannel:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 194 of file lltransfermanager.h.


Member Typedef Documentation

typedef std::list<LLTransferSource *>::iterator LLTransferSourceChannel::ts_iter [protected]

Definition at line 215 of file lltransfermanager.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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::setThrottleID ( const S32  throttle_id  )  [inline]

Definition at line 209 of file lltransfermanager.h.

References mThrottleID.

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.


Member Data Documentation

LLTransferChannelType LLTransferSourceChannel::mChannelType [protected]

Definition at line 217 of file lltransfermanager.h.

Referenced by getChannelType(), and updateTransfers().

LLHost LLTransferSourceChannel::mHost [protected]

Definition at line 218 of file lltransfermanager.h.

Referenced by getHost().

S32 LLTransferSourceChannel::mThrottleID [protected]

Definition at line 222 of file lltransfermanager.h.

Referenced by setThrottleID(), and updateTransfers().

LLPriQueueMap<LLTransferSource*> LLTransferSourceChannel::mTransferSources [protected]

Definition at line 219 of file lltransfermanager.h.

Referenced by addTransferSource(), deleteTransfer(), findTransferSource(), updatePriority(), updateTransfers(), and ~LLTransferSourceChannel().


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