#include <llcurl.h>

Public Member Functions | |
| LLCurlRequest () | |
| ~LLCurlRequest () | |
| void | get (const std::string &url, LLCurl::ResponderPtr responder) |
| bool | getByteRange (const std::string &url, S32 offset, S32 length, LLCurl::ResponderPtr responder) |
| bool | post (const std::string &url, const LLSD &data, LLCurl::ResponderPtr responder) |
| S32 | process () |
| S32 | getQueued () |
Private Types | |
| typedef std::set< LLCurl::Multi * > | curlmulti_set_t |
Private Member Functions | |
| void | addMulti () |
| LLCurl::Easy * | allocEasy () |
| bool | addEasy (LLCurl::Easy *easy) |
Private Attributes | |
| curlmulti_set_t | mMultiSet |
| LLCurl::Multi * | mActiveMulti |
| S32 | mActiveRequestCount |
Definition at line 168 of file llcurl.h.
typedef std::set<LLCurl::Multi*> LLCurlRequest::curlmulti_set_t [private] |
| LLCurlRequest::LLCurlRequest | ( | ) |
Definition at line 680 of file llcurl.cpp.
| LLCurlRequest::~LLCurlRequest | ( | ) |
| void LLCurlRequest::get | ( | const std::string & | url, | |
| LLCurl::ResponderPtr | responder | |||
| ) |
Definition at line 720 of file llcurl.cpp.
References getByteRange().

| bool LLCurlRequest::getByteRange | ( | const std::string & | url, | |
| S32 | offset, | |||
| S32 | length, | |||
| LLCurl::ResponderPtr | responder | |||
| ) |
Definition at line 725 of file llcurl.cpp.
References addEasy(), allocEasy(), llformat(), LLCurl::Easy::prepRequest(), LLCurl::Easy::setHeaders(), LLCurl::Easy::setopt(), and LLCurl::Easy::slist_append().
Referenced by get().


| bool LLCurlRequest::post | ( | const std::string & | url, | |
| const LLSD & | data, | |||
| LLCurl::ResponderPtr | responder | |||
| ) |
Definition at line 744 of file llcurl.cpp.
References addEasy(), allocEasy(), LLCurl::Easy::getInput(), lldebugs, llendl, NULL, LLCurl::Easy::prepRequest(), S32, LLCurl::Easy::setHeaders(), LLCurl::Easy::setopt(), LLCurl::Easy::slist_append(), and LLSDSerialize::toXML().

| S32 LLCurlRequest::process | ( | ) |
Definition at line 769 of file llcurl.cpp.
References mActiveMulti, mMultiSet, LLCurl::Multi::mQueued, LLCurl::Multi::process(), and S32.

| S32 LLCurlRequest::getQueued | ( | ) |
| void LLCurlRequest::addMulti | ( | ) | [private] |
Definition at line 691 of file llcurl.cpp.
References mActiveMulti, mActiveRequestCount, and mMultiSet.
Referenced by allocEasy().

| LLCurl::Easy * LLCurlRequest::allocEasy | ( | ) | [private] |
Definition at line 699 of file llcurl.cpp.
References addMulti(), LLCurl::Multi::allocEasy(), llassert_always, mActiveMulti, mActiveRequestCount, MAX_ACTIVE_REQUEST_COUNT, and LLCurl::Multi::mErrorCount.
Referenced by getByteRange(), and post().


| bool LLCurlRequest::addEasy | ( | LLCurl::Easy * | easy | ) | [private] |
Definition at line 713 of file llcurl.cpp.
References LLCurl::Multi::addEasy(), llassert_always, and mActiveMulti.
Referenced by getByteRange(), and post().


curlmulti_set_t LLCurlRequest::mMultiSet [private] |
Definition at line 187 of file llcurl.h.
Referenced by addMulti(), getQueued(), process(), and ~LLCurlRequest().
LLCurl::Multi* LLCurlRequest::mActiveMulti [private] |
Definition at line 188 of file llcurl.h.
Referenced by addEasy(), addMulti(), allocEasy(), and process().
S32 LLCurlRequest::mActiveRequestCount [private] |
1.5.5