cURL / Mailing Lists / curl-library / Single Mail

curl-library

Using libcURL + Multi Interface + Implementation of Pause/Resume function + SFTP

From: Chronos CC <chronos.cc_at_gmail.com>
Date: Wed, 18 Jan 2012 09:23:34 -0300

Hi all,

I'm trying to implement a client of SFTP protocol (using libcURL) to
download a couple of files in the same time. So I'm using multi interface
to do it.
But is necessary to implement pause/resume functions.
I'm using curl_easy_pause to implement these functionalities. But in 50% of
times that I call that function I got an end transfer with status 56
(CURLE_RECV_ERROR - Failure with receiving network data.).

I put my codes in: http://pastebin.com/64zKrPYL

The problem happens when I call function pauseDownload function in the line
185.

Help me, please, guys.

Best Regards,

Antonio Cosme

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