25 #define _HandlePool_h 1 32 #include <curl/curl.h> 43 pthread_mutex_t& m_mutex;
49 Lock(pthread_mutex_t &lock);
65 char d_errbuf[CURL_ERROR_SIZE];
115 unsigned int d_max_easy_handles;
117 std::vector<dmrpp_easy_handle *> d_easy_handles;
121 pthread_mutex_t d_get_easy_handle_mutex;
130 for (std::vector<dmrpp_easy_handle *>::iterator i = d_easy_handles.begin(), e = d_easy_handles.end(); i != e; ++i) {
134 delete d_multi_handle;
137 unsigned int get_max_handles()
const 139 return d_max_easy_handles;
144 return d_multi_handle;
154 #endif // _HandlePool_h
void read_data()
This is the read_data() method for serial transfers.
dmrpp_easy_handle()
Build a string with hex info about stuff libcurl gets.
Bundle a libcurl easy handle to other information.
Encapsulate a libcurl multi handle.
dmrpp_easy_handle * get_easy_handle(Chunk *chunk)
void read_data()
The read_data() method for parallel transfers.
void release_handle(dmrpp_easy_handle *h)
void add_easy_handle(dmrpp_easy_handle *eh)
Add an Easy Handle to a Multi Handle object.