Lines Matching refs:conn
124 ConnInfo *conn; in check_multi_info() local
133 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn); in check_multi_info()
135 MSG_OUT("DONE: %s => (%d) %s\n", eff_url, res, conn->error); in check_multi_info()
137 free(conn->url); in check_multi_info()
139 free(conn); in check_multi_info()
278 ConnInfo *conn = (ConnInfo*) data; in write_cb() local
280 (void)conn; in write_cb()
288 ConnInfo *conn = (ConnInfo *)p; in prog_cb() local
289 MSG_OUT("Progress: %s (%g/%g)\n", conn->url, dlnow, dltotal); in prog_cb()
296 ConnInfo *conn; in new_conn() local
299 conn = g_malloc0(sizeof(ConnInfo)); in new_conn()
300 conn->error[0]='\0'; in new_conn()
301 conn->easy = curl_easy_init(); in new_conn()
302 if(!conn->easy) { in new_conn()
306 conn->global = g; in new_conn()
307 conn->url = g_strdup(url); in new_conn()
308 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url); in new_conn()
309 curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb); in new_conn()
310 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn); in new_conn()
311 curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, (long)SHOW_VERBOSE); in new_conn()
312 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error); in new_conn()
313 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn); in new_conn()
314 curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, SHOW_PROGRESS ? 0L : 1L); in new_conn()
315 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb); in new_conn()
316 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn); in new_conn()
317 curl_easy_setopt(conn->easy, CURLOPT_FOLLOWLOCATION, 1L); in new_conn()
318 curl_easy_setopt(conn->easy, CURLOPT_CONNECTTIMEOUT, 30L); in new_conn()
319 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 1L); in new_conn()
320 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 30L); in new_conn()
322 MSG_OUT("Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url); in new_conn()
323 rc = curl_multi_add_handle(g->multi, conn->easy); in new_conn()