Lines Matching refs:conn
180 ConnInfo *conn; in check_multi_info() local
189 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
191 fprintf(MSG_OUT, "DONE: %s => (%d) %s\n", eff_url, res, conn->error); in check_multi_info()
193 free(conn->url); in check_multi_info()
195 free(conn); in check_multi_info()
347 ConnInfo *conn = (ConnInfo *)p; in prog_cb() local
351 fprintf(MSG_OUT, "Progress: %s (%g/%g)\n", conn->url, dlnow, dltotal); in prog_cb()
359 ConnInfo *conn; in new_conn() local
362 conn = (ConnInfo*)calloc(1, sizeof(ConnInfo)); in new_conn()
363 conn->error[0]='\0'; in new_conn()
365 conn->easy = curl_easy_init(); in new_conn()
366 if(!conn->easy) { in new_conn()
370 conn->global = g; in new_conn()
371 conn->url = strdup(url); in new_conn()
372 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); in new_conn()
373 curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb); in new_conn()
374 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn); in new_conn()
375 curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L); in new_conn()
376 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); in new_conn()
377 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); in new_conn()
378 curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 0L); in new_conn()
379 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb); in new_conn()
380 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn); in new_conn()
381 curl_easy_setopt(conn->easy, CURLOPT_FOLLOWLOCATION, 1L); in new_conn()
382 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 3L); in new_conn()
383 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 10L); in new_conn()
385 "Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url); in new_conn()
386 rc = curl_multi_add_handle(g->multi, conn->easy); in new_conn()