llcurl.cpp File Reference

#include "linden_common.h"
#include "llcurl.h"
#include <algorithm>
#include <iomanip>
#include <curl/curl.h>
#include <openssl/crypto.h>
#include "llbufferstream.h"
#include "llstl.h"
#include "llsdserialize.h"
#include "llthread.h"

Include dependency graph for llcurl.cpp:

Go to the source code of this file.

Namespaces

namespace  boost

Classes

class  LLCurl::Easy
class  LLCurl::Multi

Defines

#define SAFE_SSL   1

Functions

void boost::intrusive_ptr_add_ref (LLCurl::Responder *p)
void boost::intrusive_ptr_release (LLCurl::Responder *p)
size_t curlReadCallback (char *data, size_t size, size_t nmemb, void *user_data)
size_t curlWriteCallback (char *data, size_t size, size_t nmemb, void *user_data)
size_t curlHeaderCallback (void *data, size_t size, size_t nmemb, void *user_data)

Variables

static const S32 EASY_HANDLE_POOL_SIZE = 5
static const S32 MULTI_PERFORM_CALL_REPEAT = 5
static const S32 CURL_REQUEST_TIMEOUT = 30
static const S32 MAX_ACTIVE_REQUEST_COUNT = 100
S32 gCurlEasyCount = 0
S32 gCurlMultiCount = 0


Define Documentation

#define SAFE_SSL   1

Definition at line 39 of file llcurl.cpp.


Function Documentation

size_t curlHeaderCallback ( void *  data,
size_t  size,
size_t  nmemb,
void *  user_data 
)

Definition at line 430 of file llcurl.cpp.

References LLCurl::Easy::getHeaderOutput(), and n.

Referenced by LLCurl::Easy::prepRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t curlReadCallback ( char *  data,
size_t  size,
size_t  nmemb,
void *  user_data 
)

Definition at line 404 of file llcurl.cpp.

References LLCurl::Easy::getInput(), llmin(), n, and S32.

Referenced by LLCurl::Easy::prepRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t curlWriteCallback ( char *  data,
size_t  size,
size_t  nmemb,
void *  user_data 
)

Definition at line 420 of file llcurl.cpp.

References LLCurl::Easy::getChannels(), LLCurl::Easy::getOutput(), LLChannelDescriptors::in(), n, and S32.

Referenced by LLCurl::Easy::prepRequest().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const S32 CURL_REQUEST_TIMEOUT = 30 [static]

Definition at line 78 of file llcurl.cpp.

Referenced by LLCurl::Easy::prepRequest().

const S32 EASY_HANDLE_POOL_SIZE = 5 [static]

Definition at line 76 of file llcurl.cpp.

Referenced by LLCurl::Multi::easyFree().

Definition at line 82 of file llcurl.cpp.

Referenced by LLCurl::Easy::getEasy(), LLCurl::Multi::Multi(), and LLCurl::Easy::~Easy().

Definition at line 83 of file llcurl.cpp.

Referenced by LLCurl::Easy::getEasy(), LLCurl::Multi::Multi(), and LLCurl::Multi::~Multi().

const S32 MAX_ACTIVE_REQUEST_COUNT = 100 [static]

Definition at line 79 of file llcurl.cpp.

Referenced by LLCurlRequest::allocEasy().

const S32 MULTI_PERFORM_CALL_REPEAT = 5 [static]

Definition at line 77 of file llcurl.cpp.

Referenced by LLCurl::Multi::perform().


Generated on Fri May 16 08:35:20 2008 for SecondLife by  doxygen 1.5.5