static void response_done_callback(void *cls, struct SPDY_Response *response, struct SPDY_Request *request, enum SPDY_RESPONSE_RESULT status, bool streamopened) { (void)streamopened; struct Proxy *proxy = (struct Proxy *)cls; int ret; if(SPDY_RESPONSE_RESULT_SUCCESS != status) { printf("answer was NOT sent, %i\n",status); } if(CURLM_OK != (ret = curl_multi_remove_handle(multi_handle, proxy->curl_handle))) { PRINT_INFO2("curl_multi_remove_handle failed (%i)", ret); } curl_slist_free_all(proxy->curl_headers); curl_easy_cleanup(proxy->curl_handle); SPDY_destroy_request(request); SPDY_destroy_response(response); free(proxy->url); free(proxy); }
void response_done_callback(void *cls, struct SPDY_Response *response, struct SPDY_Request *request, bool streamopened) { printf("answer for %s was sent\n", (char*)cls); SPDY_destroy_request(request); SPDY_destroy_response(response); free(cls); run = 0; }
static void response_done_callback(void *cls, struct SPDY_Response *response, struct SPDY_Request *request, enum SPDY_RESPONSE_RESULT status, bool streamopened) { (void)streamopened; (void)status; printf("answer for %s was sent\n", (char *)cls); SPDY_destroy_request(request); SPDY_destroy_response(response); free(cls); }
void response_done_callback(void *cls, struct SPDY_Response *response, struct SPDY_Request *request, enum SPDY_RESPONSE_RESULT status, bool streamopened) { (void)streamopened; (void)status; //printf("answer for %s was sent\n", (char *)cls); /*if(SPDY_RESPONSE_RESULT_SUCCESS != status) { printf("answer for %s was NOT sent, %i\n", (char *)cls,status); }*/ SPDY_destroy_request(request); SPDY_destroy_response(response); if(NULL!=cls)fclose(cls); }