LLHTTPAssetRequest Class Reference

Inheritance diagram for LLHTTPAssetRequest:

Inheritance graph
[legend]
Collaboration diagram for LLHTTPAssetRequest:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLHTTPAssetRequest (LLHTTPAssetStorage *asp, const LLUUID &uuid, LLAssetType::EType type, LLAssetStorage::ERequestType rt, const char *url, CURLM *curl_multi)
virtual ~LLHTTPAssetRequest ()
void setupCurlHandle ()
void cleanupCurlHandle ()
void prepareCompressedUpload ()
void finishCompressedUpload ()
size_t readCompressedData (void *data, size_t size)
virtual LLSD getTerseDetails () const
virtual LLSD getFullDetails () const

Static Public Member Functions

static size_t curlCompressedUploadCallback (void *data, size_t size, size_t nmemb, void *user_data)

Public Attributes

LLHTTPAssetStoragemAssetStoragep
CURL * mCurlHandle
CURLM * mCurlMultiHandle
char * mURLBuffer
struct curl_slist * mHTTPHeaders
LLVFilemVFile
LLUUID mTmpUUID
LLAssetStorage::ERequestType mRequestType
bool mZInitialized
z_stream mZStream
char * mZInputBuffer
bool mZInputExhausted
FILE * mFP


Detailed Description

Definition at line 80 of file llhttpassetstorage.cpp.


Constructor & Destructor Documentation

LLHTTPAssetRequest::LLHTTPAssetRequest ( LLHTTPAssetStorage asp,
const LLUUID uuid,
LLAssetType::EType  type,
LLAssetStorage::ERequestType  rt,
const char *  url,
CURLM *  curl_multi 
)

LLHTTPAssetRequest::~LLHTTPAssetRequest (  )  [virtual]

Definition at line 147 of file llhttpassetstorage.cpp.

References cleanupCurlHandle(), finishCompressedUpload(), mCurlHandle, mCurlMultiHandle, mHTTPHeaders, mURLBuffer, and mVFile.

Here is the call graph for this function:


Member Function Documentation

void LLHTTPAssetRequest::setupCurlHandle (  ) 

Definition at line 240 of file llhttpassetstorage.cpp.

References LLHTTPAssetStorage::addRunningRequest(), llendl, llerrs, mAssetStoragep, mCurlHandle, mHTTPHeaders, mRequestType, mURLBuffer, mZInitialized, and LLAssetStorage::RT_DOWNLOAD.

Referenced by LLHTTPAssetStorage::checkForTimeouts().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHTTPAssetRequest::cleanupCurlHandle (  ) 

Definition at line 278 of file llhttpassetstorage.cpp.

References llendl, llerrs, mAssetStoragep, mCurlHandle, mRequestType, NULL, and LLHTTPAssetStorage::removeRunningRequest().

Referenced by LLHTTPAssetStorage::checkForTimeouts(), and ~LLHTTPAssetRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHTTPAssetRequest::prepareCompressedUpload (  ) 

Definition at line 293 of file llhttpassetstorage.cpp.

References COMPRESSED_INPUT_BUFFER_SIZE, gAssetStorage, LLAssetRequest::getType(), LLAssetRequest::getUUID(), llendl, llerrs, mVFile, LLAssetStorage::mVFS, mZInitialized, mZInputBuffer, mZInputExhausted, mZStream, r, and LLVFile::READ.

Referenced by LLHTTPAssetStorage::checkForTimeouts().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLHTTPAssetRequest::finishCompressedUpload (  ) 

Definition at line 321 of file llhttpassetstorage.cpp.

References llendl, llinfos, mZInitialized, mZInputBuffer, and mZStream.

Referenced by ~LLHTTPAssetRequest().

Here is the caller graph for this function:

size_t LLHTTPAssetRequest::readCompressedData ( void *  data,
size_t  size 
)

Definition at line 335 of file llhttpassetstorage.cpp.

References COMPRESSED_INPUT_BUFFER_SIZE, LLVFile::getLastBytesRead(), LLVFile::getSize(), llassert, llendl, llmin(), llwarns, mVFile, mZInitialized, mZInputBuffer, mZInputExhausted, mZStream, r, LLVFile::read(), S32, and LLVFile::tell().

Referenced by curlCompressedUploadCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t LLHTTPAssetRequest::curlCompressedUploadCallback ( void *  data,
size_t  size,
size_t  nmemb,
void *  user_data 
) [static]

Definition at line 377 of file llhttpassetstorage.cpp.

References gAssetStorage, NULL, and readCompressedData().

Referenced by LLHTTPAssetStorage::checkForTimeouts().

Here is the call graph for this function:

Here is the caller graph for this function:

LLSD LLHTTPAssetRequest::getTerseDetails (  )  const [virtual]

Reimplemented from LLAssetRequest.

Definition at line 165 of file llhttpassetstorage.cpp.

References LLAssetRequest::getTerseDetails(), mURLBuffer, and tut::sd().

Here is the call graph for this function:

LLSD LLHTTPAssetRequest::getFullDetails (  )  const [virtual]

Reimplemented from LLAssetRequest.

Definition at line 175 of file llhttpassetstorage.cpp.

References LLAssetRequest::getFullDetails(), LLAssetStorage::getRequestName(), mCurlHandle, mFP, mRequestType, mTmpUUID, mZInitialized, mZInputExhausted, NULL, S32, and tut::sd().

Here is the call graph for this function:


Member Data Documentation

Definition at line 102 of file llhttpassetstorage.cpp.

Referenced by cleanupCurlHandle(), LLHTTPAssetRequest(), and setupCurlHandle().

Definition at line 105 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetRequest(), and ~LLHTTPAssetRequest().

struct curl_slist* LLHTTPAssetRequest::mHTTPHeaders [read]


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

Generated on Fri May 16 08:48:58 2008 for SecondLife by  doxygen 1.5.5