curl-library
Re: A new callback function: XFERINFO ?
Date: Sat, 15 Jun 2013 16:45:06 -0700 (PDT)
Thinking about this more, does it really make sense to combine upload and download into a single transfer function? Perhaps they should be two seperate functions? One only called while uploading, the other only called while downloading?
I guess there's pros and cons. Discuss!
-Nach
________________________________
From: Daniel Stenberg <daniel@haxx.se>
To: libcurl hacking <curl-library@cool.haxx.se>
Sent: Saturday, June 15, 2013 4:05 PM
Subject: A new callback function: XFERINFO ?
Hi friends,
It has been discussed so many times I decided to just make it. Attached here
is my first take on a new progress callback that doesn't use any double
(floating point) variable types. They were always a bad design choice that
have just been following along since the age of dawn.
We're in a feature freeze for another week so this is shown here to attract
your feedback and comments. What do you miss in the current callback and is
there any other design mistakes with the former one that we can fix while at
it?
For example, we can perhaps fix that annoying thing that we set unknown values
to 0 instead of signalling it a really nice way... (as 0 can also mean that it
is actually known to be 0!)
Thoughts?
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-16