cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Use of curl_easy_reset

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 May 2011 15:28:49 +0200 (CEST)

On Fri, 27 May 2011, aekam parmar wrote:

> In one of my project i need to get stream from IP camera over HTTP. Now once
> i call curl_easy_perform, it starts receiving continuous stream of data. If
> i want to stop transfer, i'm using curl_easy_reset followed by
> curl_easy_cleanup. Is this the right way to do it, or should i do it other
> way?

curl-library is the mailing list for libcurl stuff.

No, it is not the right way:

   http://curl.haxx.se/docs/faq.html#How_do_I_stop_an_ongoing_transfe

curl_easy_reset() is, as documented, made for resetting options set to a curl
handle: http://curl.haxx.se/libcurl/c/curl_easy_reset.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-27