Lines Matching refs:context
58 curl_context_t *context; in create_curl_context() local
60 context = (curl_context_t *) malloc(sizeof(*context)); in create_curl_context()
62 context->sockfd = sockfd; in create_curl_context()
63 context->uv = uv; in create_curl_context()
65 uv_poll_init_socket(uv->loop, &context->poll_handle, sockfd); in create_curl_context()
66 context->poll_handle.data = context; in create_curl_context()
68 return context; in create_curl_context()
73 curl_context_t *context = (curl_context_t *) handle->data; in curl_close_cb() local
74 free(context); in curl_close_cb()
77 static void destroy_curl_context(curl_context_t *context) in destroy_curl_context() argument
79 uv_close((uv_handle_t *) &context->poll_handle, curl_close_cb); in destroy_curl_context()
104 static void check_multi_info(curl_context_t *context) in check_multi_info() argument
112 while((message = curl_multi_info_read(context->uv->multi, &pending))) { in check_multi_info()
126 curl_multi_remove_handle(context->uv->multi, easy_handle); in check_multi_info()
145 curl_context_t *context = (curl_context_t *) req->data; in on_uv_socket() local
152 curl_multi_socket_action(context->uv->multi, context->sockfd, flags, in on_uv_socket()
154 check_multi_info(context); in on_uv_socket()
160 curl_context_t *context = (curl_context_t *) req->data; in on_uv_timeout() local
161 if(context) { in on_uv_timeout()
163 curl_multi_socket_action(context->uv->multi, CURL_SOCKET_TIMEOUT, 0, in on_uv_timeout()
165 check_multi_info(context); in on_uv_timeout()