cURL / Mailing Lists / curl-library / Single Mail

curl-library

include file + progress + abort

From: Johan Nilsson <johan_at_nnl.se>
Date: Wed, 13 Dec 2000 09:32:52 +0100

Hello!

I'm using the 7.5 version of libcurl for (RedHat) Linux. I've compiled
the source myself and it worked fine but when I use curl.h in my
application I have to add a #include <stdio.h> to the curl.h file
becuase otherwise the compiler cannot find the definition for FILE...

How often is a progress callback triggered?

I only use ftp and http and the only drawback I can think of so far is
the abort mechanism.
I really think we should try to figure out a new way to abort a transfer
(just as Daniel said in an earlier mail) if for example a request is
waiting to timeout.

I haven't tested this yet but does libcurl abort if I don't return the
correct number of bytes "written" in my write function. If so is it safe
to do so, i.e. I can do a cleanup so I don't have to wait for the next
progress callback.

//Johan

--
| Johan Nilsson, M.Sc. in C.S.E., johan_at_nnl.se
| NNL Technology AB, http://www.nnl.se
| Phone: +46 (0)13 211400
| Mobile: +46 (0)70 9634472
| Address: Teknikringen 1B, S-58330 Linköping, SWEDEN
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/curl-library
Received on 2000-12-13