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

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.

Here is the call graph for this function:


Member Function Documentation

void LLTransferManager::init ( void   ) 

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTransferManager::cleanup (  ) 

Definition at line 94 of file lltransfermanager.cpp.

References FALSE, mTransferConnections, and mValid.

Referenced by LLAppViewer::cleanup(), end_messaging_system(), and ~LLTransferManager().

Here is the caller graph for this function:

void LLTransferManager::updateTransfers (  ) 

Definition at line 107 of file lltransfermanager.cpp.

References mTransferConnections.

Referenced by LLMessageSystem::processAcks().

Here is the caller graph for this function:

void LLTransferManager::cleanupConnection ( const LLHost host  ) 

Definition at line 122 of file lltransfermanager.cpp.

References mTransferConnections.

Referenced by LLCircuitData::~LLCircuitData().

Here is the caller graph for this function:

LLTransferSourceChannel * LLTransferManager::getSourceChannel ( const LLHost host,
const LLTransferChannelType  stype 
)

Definition at line 153 of file lltransfermanager.cpp.

References LLTransferConnection::getSourceChannel(), getTransferConnection(), and NULL.

Referenced by processTransferAbort(), and processTransferRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

LLTransferTargetChannel * LLTransferManager::getTargetChannel ( const LLHost host,
const LLTransferChannelType  stype 
)

Definition at line 165 of file lltransfermanager.cpp.

References LLTransferConnection::getTargetChannel(), getTransferConnection(), and NULL.

Referenced by LLAssetStorage::getEstateAsset(), LLAssetStorage::getInvItemAsset(), processTransferAbort(), processTransferInfo(), and processTransferPacket().

Here is the call graph for this function:

Here is the caller graph for this function:

LLTransferSource * LLTransferManager::findTransferSource ( const LLUUID transfer_id  ) 

Definition at line 180 of file lltransfermanager.cpp.

References LLTransferSourceChannel::findTransferSource(), mTransferConnections, LLTransferConnection::mTransferSourceChannels, and NULL.

Referenced by reliablePacketCallback(), and LLTransferSourceAsset::responderCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTransferManager::isValid (  )  const [inline]

Definition at line 129 of file lltransfermanager.h.

References mValid.

void LLTransferManager::processTransferRequest ( LLMessageSystem mesgsys,
void **   
) [static]

void LLTransferManager::processTransferInfo ( LLMessageSystem mesgsys,
void **   
) [static]

void LLTransferManager::processTransferPacket ( LLMessageSystem mesgsys,
void **   
) [static]

void LLTransferManager::processTransferAbort ( LLMessageSystem mesgsys,
void **   
) [static]

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

Definition at line 611 of file lltransfermanager.cpp.

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

Referenced by LLTransferSourceChannel::updateTransfers().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLTransferManager::getTransferBitsIn ( const LLTransferChannelType  tctype  )  const [inline]

Definition at line 138 of file lltransfermanager.h.

References mTransferBitsIn.

Referenced by update_statistics().

Here is the caller graph for this function:

S32 LLTransferManager::getTransferBitsOut ( const LLTransferChannelType  tctype  )  const [inline]

Definition at line 139 of file lltransfermanager.h.

References mTransferBitsOut.

void LLTransferManager::resetTransferBitsIn ( const LLTransferChannelType  tctype  )  [inline]

Definition at line 140 of file lltransfermanager.h.

References mTransferBitsIn.

Referenced by update_statistics().

Here is the caller graph for this function:

void LLTransferManager::resetTransferBitsOut ( const LLTransferChannelType  tctype  )  [inline]

Definition at line 141 of file lltransfermanager.h.

References mTransferBitsOut.

void LLTransferManager::addTransferBitsIn ( const LLTransferChannelType  tctype,
const S32  bits 
) [inline]

Definition at line 142 of file lltransfermanager.h.

References mTransferBitsIn.

Referenced by processTransferPacket().

Here is the caller graph for this function:

void LLTransferManager::addTransferBitsOut ( const LLTransferChannelType  tctype,
const S32  bits 
) [inline]

Definition at line 143 of file lltransfermanager.h.

References mTransferBitsOut.

Referenced by LLTransferSourceChannel::updateTransfers().

Here is the caller graph for this function:

LLTransferConnection * LLTransferManager::getTransferConnection ( const LLHost host  )  [protected]

Definition at line 139 of file lltransfermanager.cpp.

References mTransferConnections.

Referenced by getSourceChannel(), and getTargetChannel().

Here is the caller graph for this function:

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


Member Data Documentation

Definition at line 152 of file lltransfermanager.h.

Referenced by cleanup(), init(), isValid(), and ~LLTransferManager().

Definition at line 153 of file lltransfermanager.h.

S32 LLTransferManager::mTransferBitsIn[LLTTT_NUM_TYPES] [protected]

S32 LLTransferManager::mTransferBitsOut[LLTTT_NUM_TYPES] [protected]


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:18:40 2008 for SecondLife by  doxygen 1.5.5