llhttpassetstorage.cpp File Reference

Subclass capable of loading asset data to/from an external source. Currently, a web server accessed via curl. More...

#include "linden_common.h"
#include "llhttpassetstorage.h"
#include <sys/stat.h>
#include "indra_constants.h"
#include "message.h"
#include "llvfile.h"
#include "llvfs.h"
#include "zlib/zlib.h"

Include dependency graph for llhttpassetstorage.cpp:

Go to the source code of this file.

Classes

struct  LLTempAssetData
class  LLHTTPAssetRequest

Variables

const U32 MAX_RUNNING_REQUESTS = 1
const F32 MAX_PROCESSING_TIME = 0.005f
const S32 CURL_XFER_BUFFER_SIZE = 65536
const F32 GET_URL_TO_FILE_TIMEOUT = 1800.0f
const S32 COMPRESSED_INPUT_BUFFER_SIZE = 4096
const S32 HTTP_OK = 200
const S32 HTTP_PUT_OK = 201
const S32 HTTP_NO_CONTENT = 204
const S32 HTTP_MISSING = 404
const S32 HTTP_SERVER_BAD_GATEWAY = 502
const S32 HTTP_SERVER_TEMP_UNAVAILABLE = 503


Detailed Description

Subclass capable of loading asset data to/from an external source. Currently, a web server accessed via curl.

LicenseInfo
firstyear=2003&license=viewergpl

Copyright (c) 2003-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llhttpassetstorage.cpp.


Variable Documentation

const S32 COMPRESSED_INPUT_BUFFER_SIZE = 4096

Definition at line 56 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetRequest::prepareCompressedUpload(), and LLHTTPAssetRequest::readCompressedData().

const S32 CURL_XFER_BUFFER_SIZE = 65536

Definition at line 52 of file llhttpassetstorage.cpp.

const F32 GET_URL_TO_FILE_TIMEOUT = 1800.0f

Definition at line 54 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::getURLToFile().

const S32 HTTP_MISSING = 404

Definition at line 61 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::checkForTimeouts(), and LLHTTPAssetStorage::getURLToFile().

const S32 HTTP_NO_CONTENT = 204

Definition at line 60 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::checkForTimeouts().

const S32 HTTP_OK = 200

Definition at line 58 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::checkForTimeouts(), and LLHTTPAssetStorage::getURLToFile().

const S32 HTTP_PUT_OK = 201

Definition at line 59 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::checkForTimeouts().

const S32 HTTP_SERVER_BAD_GATEWAY = 502

Definition at line 62 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::checkForTimeouts().

const S32 HTTP_SERVER_TEMP_UNAVAILABLE = 503

Definition at line 63 of file llhttpassetstorage.cpp.

Referenced by LLHTTPAssetStorage::checkForTimeouts().

const F32 MAX_PROCESSING_TIME = 0.005f

Definition at line 51 of file llhttpassetstorage.cpp.

Referenced by LLXMLRPCTransaction::Impl::process().

const U32 MAX_RUNNING_REQUESTS = 1

Definition at line 50 of file llhttpassetstorage.cpp.


Generated on Thu Jul 1 06:10:28 2010 for Second Life Viewer by  doxygen 1.4.7