Lines Matching refs:handle
66 static int debug_cb(CURL *handle, curl_infotype type, in debug_cb() argument
76 (void)handle; /* not used */ in debug_cb()
79 if(!curl_easy_getinfo(handle, CURLINFO_XFER_ID, &xfer_id) && xfer_id >= 0) { in debug_cb()
80 if(!curl_easy_getinfo(handle, CURLINFO_CONN_ID, &conn_id) && in debug_cb()
160 struct handle struct
173 struct handle *handle = (struct handle *) clientp; in cb() argument
177 if(curl_easy_getinfo(handle->h, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, in cb()
180 "\n", handle->idx, totalsize); in cb()
182 if(!handle->resumed) { in cb()
183 ++handle->paused; in cb()
185 handle->idx, handle->paused, (long)realsize); in cb()
186 assert(handle->paused == 1); in cb()
189 if(handle->fail_write) { in cb()
190 ++handle->errored; in cb()
192 handle->idx, (long)realsize, handle->errored); in cb()
196 handle->idx, (long)realsize); in cb()
204 struct handle handles[HANDLECOUNT]; in main()