• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/docs/examples/

Lines Matching defs:conn

136   ConnInfo *conn;
148 curl_easy_getinfo(easy, CURLINFO_PRIVATE, &conn);
150 fprintf(MSG_OUT, "\nDONE: %s => (%d) %s", eff_url, res, conn->error);
152 free(conn->url);
154 free(conn);
320 ConnInfo *conn = (ConnInfo *)p;
324 fprintf(MSG_OUT, "\nProgress: %s (%g/%g)", conn->url, dlnow, dltotal);
325 fprintf(MSG_OUT, "\nProgress: %s (%g)", conn->url, ult);
387 ConnInfo *conn;
390 conn = (ConnInfo *)calloc(1, sizeof(ConnInfo));
391 memset(conn, 0, sizeof(ConnInfo));
392 conn->error[0]='\0';
394 conn->easy = curl_easy_init();
396 if ( !conn->easy )
401 conn->global = g;
402 conn->url = strdup(url);
403 curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
404 curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
405 curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
406 curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
407 curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
408 curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
409 curl_easy_setopt(conn->easy, CURLOPT_NOPROGRESS, 1L);
410 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSFUNCTION, prog_cb);
411 curl_easy_setopt(conn->easy, CURLOPT_PROGRESSDATA, conn);
412 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_TIME, 3L);
413 curl_easy_setopt(conn->easy, CURLOPT_LOW_SPEED_LIMIT, 10L);
416 curl_easy_setopt(conn->easy, CURLOPT_OPENSOCKETFUNCTION, opensocket);
419 curl_easy_setopt(conn->easy, CURLOPT_CLOSESOCKETFUNCTION, closesocket);
422 "\nAdding easy %p to multi %p (%s)", conn->easy, g->multi, url);
423 rc = curl_multi_add_handle(g->multi, conn->easy);