#include <llcurl.h>
Collaboration diagram for LLCurl::Easy:
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 |
Definition at line 75 of file llcurl.h.
LLCurl::Easy::Easy | ( | ) |
LLCurl::Easy::~Easy | ( | ) |
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 | ( | ) |
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().
char LLCurl::Easy::mErrorBuffer[CURL_ERROR_SIZE] [private] |
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] |
struct curl_slist* LLCurl::Easy::mHeaders [private] |
std::stringstream LLCurl::Easy::mOutput [private] |
std::string LLCurl::Easy::mRange [private] |
std::stringstream LLCurl::Easy::mRequest [private] |
ResponderPtr LLCurl::Easy::mResponder [private] |
std::string LLCurl::Easy::mURL [private] |