cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Seek function

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 6 Jan 2008 23:44:44 +0100 (CET)

On Thu, 20 Dec 2007, Georg Lippitsch wrote:

> here is a new patch that allows adding a custom "seek function" as discussed
> in the thread "Fast forward function".

Thanks a lot (and sorry for my delay in dealing with it)!

This patch doesn't apply against current CVS, can you please make it do so?

Also, can you please also provide some at least basic docs for the new
options?

I'm having second thoughts about the use for the 'origin' argument in the
callback, seeing it uses SEEK_SET all over right now. Not only do I feel
SEEK_SET is bad to use for our own callback (I would prefer CURL_SEEK_SET or
similar), but since we can't see any use of any other origin right now perhaps
we should go back to just do that in the seek function? (Oh and please don't
hate me for leaning back and forth on this! :-O) Any further thoughts on this
now when some time has gone by?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-06