cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: max download/upload speed setting (libcurl, Delphi)

From: :) <frankdochy_at_gmail.com>
Date: Sun, 5 Jul 2009 15:12:30 +0200

>> curl_easy_setopt(MyCurl, CURLoption(30145), 1024*15);

> This clearly is wrong. The types with _LARGE suffix require that you pass in
> a curl_off_t sized argument, and in this example you're clearly not doing
> that. You either typecast the number or assign it to a variable and pass
> that.

ok then ... this wasn't my idea ... one guy tried to help me in
CurlPas discussion ...
maybe, there is a problem with the pascal binding ...

have a look ... I search for off_t nad culr_off_t in source

type
  off_t = longint;
  pcurl_off_t=^curl_off_t;
  curl_off_t=off_t; <---- this might be a problem?

const
    CURLOPTTYPE_OFF_T = 30000; <---- here is that +30 000
Received on 2009-07-05