cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Where should I put post-transferring logic?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Jun 2011 22:26:14 +0200 (CEST)

On Fri, 3 Jun 2011, Saqib Ali wrote:

> I am sending files using the Curl (7.21.6) multi interface via SFTP.
>
> I want to make sure that I perform some logic exactly once IFF the files
> were transferred successfully. So where should I place this logic?

When curl_multi_info_read() returns and identifies that the specific handle
has completed its operation I'd say.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-03