Lines Matching refs:curl
18 msg = curl_multi_info_read(g->curl, &k); in curl_glue_check_finished()
45 if (curl_multi_socket_action(g->curl, fd, action, &k) != CURLM_OK) in curl_glue_on_io()
53 static int curl_glue_socket_callback(CURL *curl, curl_socket_t s, int action, void *userdata, void … in curl_glue_socket_callback() argument
59 assert(curl); in curl_glue_socket_callback()
95 if (curl_multi_assign(g->curl, s, io) != CURLM_OK) in curl_glue_socket_callback()
118 if (curl_multi_socket_action(g->curl, CURL_SOCKET_TIMEOUT, 0, &k) != CURLM_OK) in curl_glue_on_timer()
126 static int curl_glue_timer_callback(CURLM *curl, long timeout_ms, void *userdata) { in curl_glue_timer_callback() argument
130 assert(curl); in curl_glue_timer_callback()
166 if (g->curl) in curl_glue_unref()
167 curl_multi_cleanup(g->curl); in curl_glue_unref()
203 .curl = TAKE_PTR(c), in curl_glue_new()
206 if (curl_multi_setopt(g->curl, CURLMOPT_SOCKETDATA, g) != CURLM_OK) in curl_glue_new()
209 … if (curl_multi_setopt(g->curl, CURLMOPT_SOCKETFUNCTION, curl_glue_socket_callback) != CURLM_OK) in curl_glue_new()
212 if (curl_multi_setopt(g->curl, CURLMOPT_TIMERDATA, g) != CURLM_OK) in curl_glue_new()
215 … if (curl_multi_setopt(g->curl, CURLMOPT_TIMERFUNCTION, curl_glue_timer_callback) != CURLM_OK) in curl_glue_new()
270 if (curl_multi_add_handle(g->curl, c) != CURLM_OK) in curl_glue_add()
282 if (g->curl) in curl_glue_remove_and_free()
283 curl_multi_remove_handle(g->curl, c); in curl_glue_remove_and_free()