Lines Matching defs:multi
25 * multi socket API usage with epoll and timerfd
28 /* Example application source code using the multi socket interface to
87 CURLM *multi;
144 static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
185 while((msg = curl_multi_info_read(g->multi, &msgs_left))) {
192 curl_multi_remove_handle(g->multi, easy);
200 /* Called by libevent when we get action on a multi socket filedescriptor */
209 rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running);
244 rc = curl_multi_socket_action(g->multi,
301 curl_multi_assign(g->multi, s, fdp);
385 "Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url);
386 rc = curl_multi_add_handle(g->multi, conn->easy);
500 g.multi = curl_multi_init();
502 /* setup the generic multi interface options we want */
503 curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
504 curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
505 curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
506 curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
544 curl_multi_cleanup(g.multi);