LLCurl::Easy Class Reference

#include <llcurl.h>

Collaboration diagram for LLCurl::Easy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Easy ()
 ~Easy ()
void get (const std::string &url, ResponderPtr)
void getByteRange (const std::string &url, S32 offset, S32 length, ResponderPtr)
void perform ()

Private Member Functions

void prep (const std::string &url, ResponderPtr)
void report (CURLcode)

Private Attributes

CURL * mHandle
curl_slist * mHeaders
std::string mURL
std::string mRange
std::stringstream mRequest
std::stringstream mOutput
char mErrorBuffer [CURL_ERROR_SIZE]
std::stringstream mHeaderOutput
ResponderPtr mResponder

Friends

class Multi

Detailed Description

Definition at line 75 of file llcurl.h.


Constructor & Destructor Documentation

LLCurl::Easy::Easy (  ) 

Definition at line 143 of file llcurl.cpp.

References mHandle, and mHeaders.

LLCurl::Easy::~Easy (  ) 

Definition at line 155 of file llcurl.cpp.

References mHandle, and mHeaders.


Member Function Documentation

void LLCurl::Easy::get ( const std::string &  url,
ResponderPtr   
)

Definition at line 162 of file llcurl.cpp.

References mHandle, and prep().

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

void LLCurl::Easy::getByteRange ( const std::string &  url,
S32  offset,
S32  length,
ResponderPtr   
)

Definition at line 169 of file llcurl.cpp.

References llformat(), mHandle, mHeaders, mRange, and prep().

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

void LLCurl::Easy::perform (  ) 

Definition at line 178 of file llcurl.cpp.

References mHandle, and report().

void LLCurl::Easy::prep ( const std::string &  url,
ResponderPtr   
) [private]

Definition at line 184 of file llcurl.cpp.

References curlOutputCallback(), mErrorBuffer, mHandle, mHeaderOutput, mHeaders, mOutput, mResponder, and mURL.

Referenced by get(), and getByteRange().

void LLCurl::Easy::report ( CURLcode   )  [private]

Definition at line 224 of file llcurl.cpp.

References mHandle, mOutput, mResponder, and NULL.

Referenced by perform().


Friends And Related Function Documentation

friend class Multi [friend]

Definition at line 104 of file llcurl.h.


Member Data Documentation

char LLCurl::Easy::mErrorBuffer[CURL_ERROR_SIZE] [private]

Definition at line 98 of file llcurl.h.

Referenced by prep().

CURL* LLCurl::Easy::mHandle [private]

Definition at line 90 of file llcurl.h.

Referenced by Easy(), LLCurl::Multi::get(), get(), LLCurl::Multi::getByteRange(), getByteRange(), perform(), prep(), report(), and ~Easy().

std::stringstream LLCurl::Easy::mHeaderOutput [private]

Definition at line 100 of file llcurl.h.

Referenced by prep().

struct curl_slist* LLCurl::Easy::mHeaders [private]

Definition at line 91 of file llcurl.h.

Referenced by Easy(), getByteRange(), prep(), and ~Easy().

std::stringstream LLCurl::Easy::mOutput [private]

Definition at line 97 of file llcurl.h.

Referenced by prep(), and report().

std::string LLCurl::Easy::mRange [private]

Definition at line 94 of file llcurl.h.

Referenced by getByteRange().

std::stringstream LLCurl::Easy::mRequest [private]

Definition at line 95 of file llcurl.h.

ResponderPtr LLCurl::Easy::mResponder [private]

Definition at line 102 of file llcurl.h.

Referenced by prep(), and report().

std::string LLCurl::Easy::mURL [private]

Definition at line 93 of file llcurl.h.

Referenced by prep().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:13 2010 for Second Life Viewer by  doxygen 1.4.7