Skip navigation.
 
mlRe: Stopping an NSThread (or something similar)
FROM : Michael Becker
DATE : Fri Jul 14 18:41:54 2006

Am 14.07.2006 um 04:27 schrieb Chris Suter:
> For your particular problem, you need to use the curl_multi API.
>


I actually solved the problem by using my progress callback function 
with the curl_easy API. If I make it return a non-zero value, the 
upload will stop.

> Out of interest, why couldn't you use NSURLConnection. I've not 
> tried it, but couldn't you hook into NSInputStream to monitor how 
> much data has been loaded? I'd have thought this might work 
> although only on 10.4.


Well, the "10.4-only" would be the reason why I cannot do that. I 
haven't yet looked into NSInputStream, but honestly, I am quite happy 
with my curl-solution. Furthermore, I still think that Apple should 
provide callback (i.e. delegate) functions for uploading. They do for 
downloading, after all.

Regards,
Michael

Related mailsAuthorDate
mlStopping an NSThread (or something similar) Michael Becker Jul 14, 03:35
mlRe: Stopping an NSThread (or something similar) Nir Soffer Jul 14, 04:23
mlRe: Stopping an NSThread (or something similar) Chris Suter Jul 14, 04:27
mlRe: Stopping an NSThread (or something similar) Cem Karan Jul 14, 13:01
mlRe: Stopping an NSThread (or something similar) Michael Becker Jul 14, 18:41