Lines Matching refs:easy
41 of URL's and creates some new easy handles to fetch each URL via the
79 /* Information associated with a specific easy handle */
81 CURL *easy;
90 CURL *easy;
118 /* Check for completed transfers, and remove their easy handles */
125 CURL *easy;
131 easy = msg->easy_handle;
133 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
134 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
136 curl_multi_remove_handle(g->multi, easy);
138 curl_easy_cleanup(easy);
228 f->easy = e;
236 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
242 setsock(fdp, s, easy, action, g);
293 /* Create a new easy handle, and add it to the global curl_multi */
301 conn->easy = curl_easy_init();
302 if(!conn->easy) {
308 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
309 curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
310 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
311 curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, (long)SHOW_VERBOSE);
312 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
313 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
314 curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, SHOW_PROGRESS?0L:1L);
315 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
316 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
317 curl_easy_setopt(conn->easy, CURLOPT_FOLLOWLOCATION, 1L);
318 curl_easy_setopt(conn->easy, CURLOPT_CONNECTTIMEOUT, 30L);
319 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 1L);
320 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 30L);
322 MSG_OUT("Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url);
323 rc = curl_multi_add_handle(g->multi, conn->easy);