#include <llviewerassetstorage.h>
Public Member Functions | |
LLViewerAssetStorage (LLMessageSystem *msg, LLXferManager *xfer, LLVFS *vfs, const LLHost &upstream_host) | |
LLViewerAssetStorage (LLMessageSystem *msg, LLXferManager *xfer, LLVFS *vfs) | |
virtual void | storeAssetData (const LLTransactionID &tid, LLAssetType::EType atype, LLStoreAssetCallback callback, void *user_data, bool temp_file=false, bool is_priority=false, bool store_local=false, bool user_waiting=FALSE, F64 timeout=LL_ASSET_STORAGE_TIMEOUT) |
virtual void | storeAssetData (const char *filename, const LLTransactionID &tid, LLAssetType::EType type, LLStoreAssetCallback callback, void *user_data, bool temp_file=false, bool is_priority=false, bool user_waiting=FALSE, F64 timeout=LL_ASSET_STORAGE_TIMEOUT) |
Definition at line 40 of file llviewerassetstorage.h.
LLViewerAssetStorage::LLViewerAssetStorage | ( | LLMessageSystem * | msg, | |
LLXferManager * | xfer, | |||
LLVFS * | vfs, | |||
const LLHost & | upstream_host | |||
) |
Definition at line 42 of file llviewerassetstorage.cpp.
LLViewerAssetStorage::LLViewerAssetStorage | ( | LLMessageSystem * | msg, | |
LLXferManager * | xfer, | |||
LLVFS * | vfs | |||
) |
Definition at line 49 of file llviewerassetstorage.cpp.
void LLViewerAssetStorage::storeAssetData | ( | const LLTransactionID & | tid, | |
LLAssetType::EType | atype, | |||
LLStoreAssetCallback | callback, | |||
void * | user_data, | |||
bool | temp_file = false , |
|||
bool | is_priority = false , |
|||
bool | store_local = false , |
|||
bool | user_waiting = FALSE , |
|||
F64 | timeout = LL_ASSET_STORAGE_TIMEOUT | |||
) | [virtual] |
Definition at line 56 of file llviewerassetstorage.cpp.
References _PREHASH_AssetBlock, _PREHASH_AssetData, _PREHASH_AssetUploadRequest, _PREHASH_StoreLocal, _PREHASH_Tempfile, _PREHASH_TransactionID, _PREHASH_Type, LLMessageSystem::addBinaryDataFast(), LLMessageSystem::addBOOLFast(), LLMessageSystem::addS8Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLVFS::getExists(), LLVFile::getLastBytesRead(), LLAgent::getSecureSessionID(), LLVFS::getSize(), LLVFile::getSize(), LLHost::isOk(), LL_ERR_ASSET_REQUEST_FAILED, LL_ERR_ASSET_REQUEST_NONEXISTENT_FILE, LL_ERR_CIRCUIT_GONE, LL_EXSTAT_NO_UPSTREAM, LL_EXSTAT_NONEXISTENT_FILE, LL_EXSTAT_VFS_CORRUPT, llendl, llinfos, llwarns, LLAssetType::lookup(), LLTransactionID::makeAssetID(), LLAssetRequest::mDataSentInFirstPacket, LLAssetStorage::mMessageSys, LLAssetStorage::mPendingUploads, LLAssetStorage::MR_NO_UPSTREAM, LLAssetStorage::MR_OKAY, LLAssetStorage::MR_VFS_CORRUPTION, LLAssetStorage::MR_ZERO_SIZE, MTUBYTES, LLAssetRequest::mUpCallback, LLAssetStorage::mUpstreamHost, LLAssetRequest::mUserData, LLAssetStorage::mVFS, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLUUID::null, NULL, LLVFile::read(), LLVFile::READ, LLAssetStorage::reportMetric(), S32, LLMessageSystem::sendReliable(), and TRUE.
Referenced by storeAssetData().
void LLViewerAssetStorage::storeAssetData | ( | const char * | filename, | |
const LLTransactionID & | tid, | |||
LLAssetType::EType | type, | |||
LLStoreAssetCallback | callback, | |||
void * | user_data, | |||
bool | temp_file = false , |
|||
bool | is_priority = false , |
|||
bool | user_waiting = FALSE , |
|||
F64 | timeout = LL_ASSET_STORAGE_TIMEOUT | |||
) | [virtual] |
Definition at line 180 of file llviewerassetstorage.cpp.
References LLFile::fopen(), gAgent, LLAgent::getSecureSessionID(), LLAssetStorage::legacyStoreDataCallback(), LL_ERR_CANNOT_OPEN_FILE, LL_EXSTAT_BLOCKED_FILE, llendl, llerrs, llinfos, LLAssetType::lookup(), LLTransactionID::makeAssetID(), LLAssetStorage::MR_FILE_NONEXIST, LLAssetStorage::MR_VFS_CORRUPTION, LLAssetStorage::MR_ZERO_SIZE, LLLegacyAssetRequest::mUpCallback, LLLegacyAssetRequest::mUserData, LLAssetStorage::mVFS, LLUUID::null, LLFile::remove(), LLAssetStorage::reportMetric(), S32, LLVFile::setMaxSize(), storeAssetData(), LLVFile::write(), and LLVFile::WRITE.