Lines Matching defs:hnd
51 static CURLcode run(CURL *hnd, long limit, long time)
53 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_LIMIT, limit);
54 curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_TIME, time);
55 return curl_easy_perform(hnd);
61 CURL *hnd;
64 hnd = curl_easy_init();
65 curl_easy_setopt(hnd, CURLOPT_URL, URL);
66 curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, write_cb);
67 curl_easy_setopt(hnd, CURLOPT_ERRORBUFFER, buffer);
68 curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 0L);
69 curl_easy_setopt(hnd, CURLOPT_XFERINFOFUNCTION, dload_progress_cb);
71 ret = run(hnd, 1, 2);
75 ret = run(hnd, 12000, 1);
81 curl_easy_cleanup(hnd);