cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Seeking in a stream, which setopt to use?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 16 May 2009 22:36:13 +0200 (CEST)

On Fri, 15 May 2009, centrio_at_gmail.com wrote:

> 1. CURLOPT_RESUME_FROM
> 2. CURLOPT_RESUME_FROM_LARGE
>
> The Documentation talks about the differences in terms of the input
> parameters, one takes offset in number of bytes and other takes curl_off_t
> as parameter.

Right. The input argument size is the only difference.

> Which option should I use. Is there any difference wrt to the limit on the
> offset to which we can seek stream?

On a 32bit system, CURLOPT_RESUME_FROM would only be able to resume up to the
4GB point.

-- 
  / daniel.haxx.se
Received on 2009-05-16