Lines Matching refs:multi
22 /* Example application source code using the multi socket interface to
77 CURLM *multi;
106 static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
109 (void)multi; /* unused */
156 while ((msg = curl_multi_info_read(g->multi, &msgs_left))) {
163 curl_multi_remove_handle(g->multi, easy);
173 /* Called by libevent when we get action on a multi socket */
183 rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running);
205 rc = curl_multi_socket_action(g->multi,
249 curl_multi_assign(g->multi, s, fdp);
333 "Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url);
334 rc = curl_multi_add_handle(g->multi, conn->easy);
403 g.multi = curl_multi_init();
406 /* setup the generic multi interface options we want */
407 curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
408 curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
409 curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
410 curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
416 curl_multi_cleanup(g.multi);