Lines Matching defs:easy

37  * When running, the program creates an easy handle for a URL and
69 /* Information associated with a specific easy handle */
72 CURL *easy;
149 /* Check for completed transfers, and remove their easy handles */
156 CURL *easy;
165 easy = msg->easy_handle;
167 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
168 curl_easy_getinfo(easy, CURLINFO_EFFECTIVE_URL, &eff_url);
170 curl_multi_remove_handle(g->multi, easy);
172 curl_easy_cleanup(easy);
267 static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
272 setsock(fdp, s, easy, action, g);
397 /* Create a new easy handle, and add it to the global curl_multi */
405 conn->easy = curl_easy_init();
406 if(!conn->easy)
415 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
416 curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
417 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
418 curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
419 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
420 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
421 curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 1L);
422 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
423 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
424 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 3L);
425 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 10L);
428 curl_easy_setopt(conn->easy, CURLOPT_OPENSOCKETFUNCTION, opensocket);
431 curl_easy_setopt(conn->easy, CURLOPT_CLOSESOCKETFUNCTION, close_socket);
434 "\nAdding easy %p to multi %p (%s)", conn->easy, g->multi, url);
435 rc = curl_multi_add_handle(g->multi, conn->easy);