Lines Matching full:handlenum
112 static void setup_handle(char *base_url, CURLM *m, int handlenum)
116 sprintf(urlbuf, "%s%s", base_url, urlstring[handlenum]);
117 curl_easy_setopt(handles[handlenum], CURLOPT_URL, urlbuf);
118 curl_easy_setopt(handles[handlenum], CURLOPT_VERBOSE, 1L);
119 curl_easy_setopt(handles[handlenum], CURLOPT_FAILONERROR, 1L);
120 curl_easy_setopt(handles[handlenum], CURLOPT_WRITEFUNCTION, write_callback);
121 curl_easy_setopt(handles[handlenum], CURLOPT_WRITEDATA, NULL);
122 curl_multi_add_handle(m, handles[handlenum]);
142 int handlenum = 0;
178 if(handlenum < num_handles) {
182 if((msnow - mslast) >= urltime[handlenum]) {
183 fprintf(stdout, "Adding handle %d\n", handlenum);
184 setup_handle(URL, m, handlenum);
186 handlenum++;
211 if(handlenum == num_handles && !running) {