Lines Matching refs:context
17 curl_context_t *context; in create_curl_context() local
19 context = (curl_context_t*) malloc(sizeof *context); in create_curl_context()
21 context->sockfd = sockfd; in create_curl_context()
23 int r = uv_poll_init_socket(loop, &context->poll_handle, sockfd); in create_curl_context()
25 context->poll_handle.data = context; in create_curl_context()
27 return context; in create_curl_context()
31 curl_context_t *context = (curl_context_t*) handle->data; in curl_close_cb() local
32 free(context); in curl_close_cb()
35 void destroy_curl_context(curl_context_t *context) { in destroy_curl_context() argument
36 uv_close((uv_handle_t*) &context->poll_handle, curl_close_cb); in destroy_curl_context()
89 curl_context_t *context; in curl_perform() local
91 context = (curl_context_t*)req; in curl_perform()
93 curl_multi_socket_action(curl_handle, context->sockfd, flags, &running_handles); in curl_perform()