Lines Matching refs:multi
86 CURLM *multi; member
142 static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g) in multi_timer_cb() argument
145 (void)multi; in multi_timer_cb()
176 while((msg = curl_multi_info_read(g->multi, &msgs_left))) { in check_multi_info()
183 curl_multi_remove_handle(g->multi, easy); in check_multi_info()
205 rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running); in event_cb()
227 rc = curl_multi_socket_action(g->multi, in timer_cb()
275 curl_multi_assign(g->multi, s, fdp); in addsock()
357 "Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url); in new_conn()
358 rc = curl_multi_add_handle(g->multi, conn->easy); in new_conn()
443 g.multi = curl_multi_init(); in main()
447 curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb); in main()
448 curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g); in main()
449 curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb); in main()
450 curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g); in main()
463 curl_multi_cleanup(g.multi); in main()