#include <llcurl.h>
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::Multi * | mMulti |
LLCurl::Easy * | mEasy |
bool | mRequestSent |
bool | mResultReturned |
Definition at line 192 of file llcurl.h.
LLCurlEasyRequest::LLCurlEasyRequest | ( | ) |
Definition at line 805 of file llcurl.cpp.
References LLCurl::Multi::allocEasy(), mEasy, mMulti, LLCurl::Easy::setCA(), and LLCurl::Easy::setErrorBuffer().
LLCurlEasyRequest::~LLCurlEasyRequest | ( | ) |
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().
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().
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().
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().
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().
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().
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().
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().
void LLCurlEasyRequest::requestComplete | ( | ) |
Definition at line 897 of file llcurl.cpp.
References llassert_always, mEasy, mMulti, mRequestSent, and LLCurl::Multi::removeEasy().
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().
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().
std::string LLCurlEasyRequest::getErrorString | ( | ) |
Definition at line 971 of file llcurl.cpp.
References LLCurl::Easy::getErrorBuffer(), and mEasy.
Referenced by LLXMLRPCTransaction::Impl::process().
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().
LLCurl::Multi* LLCurlEasyRequest::mMulti [private] |
Definition at line 214 of file llcurl.h.
Referenced by info_read(), LLCurlEasyRequest(), perform(), requestComplete(), sendRequest(), and ~LLCurlEasyRequest().
LLCurl::Easy* LLCurlEasyRequest::mEasy [private] |
Definition at line 215 of file llcurl.h.
Referenced by getErrorString(), getResult(), info_read(), LLCurlEasyRequest(), requestComplete(), sendRequest(), setHeaderCallback(), setopt(), setoptString(), setPost(), setReadCallback(), setWriteCallback(), and slist_append().
bool LLCurlEasyRequest::mRequestSent [private] |
bool LLCurlEasyRequest::mResultReturned [private] |