Lines Matching defs:conn
171 ConnInfo *conn;
180 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
182 fprintf(MSG_OUT, "DONE: %s => (%d) %s\n", eff_url, res, conn->error);
184 free(conn->url);
186 free(conn);
321 ConnInfo *conn = (ConnInfo *)p;
325 fprintf(MSG_OUT, "Progress: %s (%g/%g)\n", conn->url, dlnow, dltotal);
333 ConnInfo *conn;
336 conn = calloc(1, sizeof(ConnInfo));
337 conn->error[0]='\0';
339 conn->easy = curl_easy_init();
340 if(!conn->easy) {
344 conn->global = g;
345 conn->url = strdup(url);
346 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
347 curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
348 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);
349 curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
350 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
351 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
352 curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 0L);
353 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
354 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
355 curl_easy_setopt(conn->easy, CURLOPT_FOLLOWLOCATION, 1L);
357 "Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url);
358 rc = curl_multi_add_handle(g->multi, conn->easy);