LLCurlRequest Class Reference

#include <llcurl.h>

Collaboration diagram for LLCurlRequest:

Collaboration graph
[legend]

List of all members.

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::EasyallocEasy ()
bool addEasy (LLCurl::Easy *easy)

Private Attributes

curlmulti_set_t mMultiSet
LLCurl::MultimActiveMulti
S32 mActiveRequestCount


Detailed Description

Definition at line 168 of file llcurl.h.


Member Typedef Documentation

typedef std::set<LLCurl::Multi*> LLCurlRequest::curlmulti_set_t [private]

Definition at line 186 of file llcurl.h.


Constructor & Destructor Documentation

LLCurlRequest::LLCurlRequest (  ) 

Definition at line 680 of file llcurl.cpp.

LLCurlRequest::~LLCurlRequest (  ) 

Definition at line 686 of file llcurl.cpp.

References mMultiSet.


Member Function Documentation

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

Definition at line 720 of file llcurl.cpp.

References getByteRange().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLCurlRequest::post ( const std::string &  url,
const LLSD data,
LLCurl::ResponderPtr  responder 
)

S32 LLCurlRequest::process (  ) 

Definition at line 769 of file llcurl.cpp.

References mActiveMulti, mMultiSet, LLCurl::Multi::mQueued, LLCurl::Multi::process(), and S32.

Here is the call graph for this function:

S32 LLCurlRequest::getQueued (  ) 

Definition at line 788 of file llcurl.cpp.

References mMultiSet, LLCurl::Multi::mQueued, and S32.

void LLCurlRequest::addMulti (  )  [private]

Definition at line 691 of file llcurl.cpp.

References mActiveMulti, mActiveRequestCount, and mMultiSet.

Referenced by allocEasy().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 187 of file llcurl.h.

Referenced by addMulti(), getQueued(), process(), and ~LLCurlRequest().

Definition at line 188 of file llcurl.h.

Referenced by addEasy(), addMulti(), allocEasy(), and process().

Definition at line 189 of file llcurl.h.

Referenced by addMulti(), and allocEasy().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:43:31 2008 for SecondLife by  doxygen 1.5.5