cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to pause ftp upload?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 27 May 2009 08:22:22 +0200 (CEST)

On Tue, 26 May 2009, m. allan noah wrote:

>> In two different threads then I presume?
>
> ah, no. I was hoping that pausing each transfer would let me work on the
> other.

While I figure that might be possible it sounds and feels like a bad idea.

>> But you must then unpause it again when you have data you want to send. Did
>> you?
>
> If you are using a single threaded program, there is nothing to un-pause
> you?

You can use the progress callback to detect that there's data to read, and
unpause from there.

-- 
  / daniel.haxx.se
Received on 2009-05-27