LLCurlEasyRequest Class Reference

#include <llcurl.h>

Collaboration diagram for LLCurlEasyRequest:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLCurlEasyRequest ()
 ~LLCurlEasyRequest ()
void setopt (CURLoption option, S32 value)
void setoptString (CURLoption option, const std::string &value)
void setPost (char *postdata, S32 size)
void setHeaderCallback (curl_header_callback callback, void *userdata)
void setWriteCallback (curl_write_callback callback, void *userdata)
void setReadCallback (curl_read_callback callback, void *userdata)
void slist_append (const char *str)
void sendRequest (const std::string &url)
void requestComplete ()
S32 perform ()
bool getResult (CURLcode *result, LLCurl::TransferInfo *info=NULL)
std::string getErrorString ()

Private Member Functions

CURLMsg * info_read (S32 *queue, LLCurl::TransferInfo *info)

Private Attributes

LLCurl::MultimMulti
LLCurl::EasymEasy
bool mRequestSent
bool mResultReturned


Detailed Description

Definition at line 192 of file llcurl.h.


Constructor & Destructor Documentation

LLCurlEasyRequest::LLCurlEasyRequest (  ) 

Definition at line 805 of file llcurl.cpp.

References LLCurl::Multi::allocEasy(), mEasy, mMulti, LLCurl::Easy::setCA(), and LLCurl::Easy::setErrorBuffer().

Here is the call graph for this function:

LLCurlEasyRequest::~LLCurlEasyRequest (  ) 

Definition at line 818 of file llcurl.cpp.

References mMulti.


Member Function Documentation

void LLCurlEasyRequest::setopt ( CURLoption  option,
S32  value 
)

Definition at line 823 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::setopt().

Referenced by LLURLRequest::checkRootCertificate(), LLURLRequest::configure(), LLXMLRPCTransaction::Impl::init(), and LLURLRequest::initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::setoptString ( CURLoption  option,
const std::string &  value 
)

Definition at line 831 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::setoptString().

Referenced by LLURLRequest::checkRootCertificate(), LLURLRequest::configure(), LLXMLRPCTransaction::Impl::init(), and LLURLRequest::useProxy().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::setPost ( char *  postdata,
S32  size 
)

Definition at line 839 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::setopt().

Referenced by LLURLRequest::configure().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::setHeaderCallback ( curl_header_callback  callback,
void *  userdata 
)

Definition at line 849 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::setopt().

Referenced by LLURLRequest::setCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::setWriteCallback ( curl_write_callback  callback,
void *  userdata 
)

Definition at line 858 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::setopt().

Referenced by LLXMLRPCTransaction::Impl::init(), and LLURLRequest::initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::setReadCallback ( curl_read_callback  callback,
void *  userdata 
)

Definition at line 867 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::setopt().

Referenced by LLURLRequest::initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::slist_append ( const char *  str  ) 

Definition at line 876 of file llcurl.cpp.

References mEasy, and LLCurl::Easy::slist_append().

Referenced by LLURLRequest::addHeader(), and LLXMLRPCTransaction::Impl::init().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::sendRequest ( const std::string &  url  ) 

Definition at line 884 of file llcurl.cpp.

References LLCurl::Multi::addEasy(), llassert_always, lldebugs, llendl, mEasy, mMulti, mRequestSent, LLCurl::Easy::setHeaders(), and LLCurl::Easy::setoptString().

Referenced by LLURLRequest::configure(), and LLXMLRPCTransaction::Impl::init().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCurlEasyRequest::requestComplete (  ) 

Definition at line 897 of file llcurl.cpp.

References llassert_always, mEasy, mMulti, mRequestSent, and LLCurl::Multi::removeEasy().

Here is the call graph for this function:

S32 LLCurlEasyRequest::perform (  ) 

Definition at line 907 of file llcurl.cpp.

References mMulti, and LLCurl::Multi::perform().

Referenced by LLXMLRPCTransaction::Impl::process(), and LLURLRequest::process_impl().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLCurlEasyRequest::getResult ( CURLcode *  result,
LLCurl::TransferInfo info = NULL 
)

Definition at line 913 of file llcurl.cpp.

References info_read(), mEasy, mResultReturned, and S32.

Referenced by LLXMLRPCTransaction::Impl::process(), and LLURLRequest::process_impl().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string LLCurlEasyRequest::getErrorString (  ) 

Definition at line 971 of file llcurl.cpp.

References LLCurl::Easy::getErrorBuffer(), and mEasy.

Referenced by LLXMLRPCTransaction::Impl::process().

Here is the call graph for this function:

Here is the caller graph for this function:

CURLMsg * LLCurlEasyRequest::info_read ( S32 queue,
LLCurl::TransferInfo info 
) [private]

Definition at line 954 of file llcurl.cpp.

References LLCurl::Easy::getTransferInfo(), LLCurl::Multi::info_read(), mEasy, mMulti, and NULL.

Referenced by getResult().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 216 of file llcurl.h.

Referenced by requestComplete(), and sendRequest().

Definition at line 217 of file llcurl.h.

Referenced by getResult().


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