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