Lines Matching refs:multi
46 CURLM *multi; member
82 static void add_download(const char *url, int num, CURLM *multi) in add_download() argument
100 curl_multi_add_handle(multi, handle); in add_download()
112 while((message = curl_multi_info_read(context->uv->multi, &pending))) { in check_multi_info()
126 curl_multi_remove_handle(context->uv->multi, easy_handle); in check_multi_info()
152 curl_multi_socket_action(context->uv->multi, context->sockfd, flags, in on_uv_socket()
163 curl_multi_socket_action(context->uv->multi, CURL_SOCKET_TIMEOUT, 0, in on_uv_timeout()
170 static int cb_timeout(CURLM *multi, long timeout_ms, in cb_timeout() argument
173 (void)multi; in cb_timeout()
202 curl_multi_assign(uv->multi, s, (void *) curl_context); in cb_socket()
215 curl_multi_assign(uv->multi, s, NULL); in cb_socket()
238 uv.multi = curl_multi_init(); in main()
239 curl_multi_setopt(uv.multi, CURLMOPT_SOCKETFUNCTION, cb_socket); in main()
240 curl_multi_setopt(uv.multi, CURLMOPT_SOCKETDATA, &uv); in main()
241 curl_multi_setopt(uv.multi, CURLMOPT_TIMERFUNCTION, cb_timeout); in main()
242 curl_multi_setopt(uv.multi, CURLMOPT_TIMERDATA, &uv); in main()
245 add_download(argv[argc], argc, uv.multi); in main()
249 curl_multi_socket_action(uv.multi, CURL_SOCKET_TIMEOUT, 0, &running_handles); in main()
251 curl_multi_cleanup(uv.multi); in main()