cURL / Mailing Lists / curl-library / Single Mail


Re: How do I stop a FTP download?

From: Daniel Stenberg <>
Date: Sat, 25 Oct 2003 08:25:44 +0200 (CEST)

On Fri, 24 Oct 2003, Wei Weng wrote:

> Place something like a global variable inside a write function, (use
> download as an example) check this variable periodically inside the write
> function to see if it has been changed to a different value that represents
> stop. If yes, then return from the write callbackk function. Is that right?

That's one way to do it, sure.

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by: The Donation Program.
Do you like what is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here:
Received on 2003-10-25