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