cURL / Mailing Lists / curl-library / Single Mail

curl-library

FTP: abort a transfer (using the ABOR FTP command)

From: Olivier ROBIN <orobin_at_histor.fr>
Date: Fri, 17 Feb 2006 17:50:49 +0100

Hi

I use libcurl for FTP, and I would like to have the possibility to interrupt a FTP transfer (STOR or RETR).

I think I have to create two threads, one for the transfer operation, and the other to send the FTP command ABOR, but it looks like that we cannot shared a CURL* handle between multiple threads (http://curl.haxx.se/libcurl/features.html#thread).

So, how can I send ABOR during a transfer without threads ?

Thanks for your help.

Olivier.
Received on 2006-02-17