cURL / Mailing Lists / curl-library / Single Mail

curl-library

help:how to clean a curl download?

From: Basil Su <hityourface_at_gmail.com>
Date: Mon, 18 Jan 2010 14:59:52 +0800

(1) how to clean a curl download?
    i'm working on a simple ftp client programn, and now i need to make it
able to stop or delete a download.
    now i just use:
    if( "get a command to stop")
    {
       curl_multi_remove_handle(multi_handle,_curl);
       curl_easy_cleanup(_curl);
    }
    curl_multi_perform(multi_handle, running_handles));

    it it a right way to stop?

    thank you!

Best Regards,
Basil

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-18