| 412 | } |
| 413 | |
| 414 | void CURLConnection::SetResume(int64_t pos) |
| 415 | { |
| 416 | mFilePos = pos; |
| 417 | |
| 418 | if (sendRange && this->mFilePos == 0) { |
| 419 | curl_easy_setopt(mHttp_handle, CURLOPT_RANGE, "0-"); |
| 420 | } else { |
| 421 | curl_easy_setopt(mHttp_handle, CURLOPT_RANGE, NULL); |
| 422 | sendRange = 0; |
| 423 | } |
| 424 | |
| 425 | curl_easy_setopt(mHttp_handle, CURLOPT_RESUME_FROM_LARGE, (curl_off_t) mFilePos); |
| 426 | } |
| 427 | |
| 428 | void CURLConnection::start() |
| 429 | { |
no outgoing calls
no test coverage detected