Lines Matching defs:multi
25 * multi socket API usage with libevent 2
28 /* Example application source code using the multi socket interface to
86 CURLM *multi;
142 static int multi_timer_cb(CURLM *multi, long timeout_ms, GlobalInfo *g)
145 (void)multi;
176 while((msg = curl_multi_info_read(g->multi, &msgs_left))) {
183 curl_multi_remove_handle(g->multi, easy);
195 /* Called by libevent when we get action on a multi socket */
205 rc = curl_multi_socket_action(g->multi, fd, action, &g->still_running);
227 rc = curl_multi_socket_action(g->multi,
275 curl_multi_assign(g->multi, s, fdp);
357 "Adding easy %p to multi %p (%s)\n", conn->easy, g->multi, url);
358 rc = curl_multi_add_handle(g->multi, conn->easy);
443 g.multi = curl_multi_init();
446 /* setup the generic multi interface options we want */
447 curl_multi_setopt(g.multi, CURLMOPT_SOCKETFUNCTION, sock_cb);
448 curl_multi_setopt(g.multi, CURLMOPT_SOCKETDATA, &g);
449 curl_multi_setopt(g.multi, CURLMOPT_TIMERFUNCTION, multi_timer_cb);
450 curl_multi_setopt(g.multi, CURLMOPT_TIMERDATA, &g);
462 curl_multi_cleanup(g.multi);