from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209581

userrating:


May 25th. 2007:
Words

486

Views

258588

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149878

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





curl_multi_get_offt

Section: C Library Functions (3)
Updated: 202-0-19
Index Return to Main Contents
 

NAME

curl_multi_get_offt - extract information from a multi handle  

SYNOPSIS

#include <curl/curl.h>

CURLMcode curl_multi_get_offt(CURLM *multi_handle,
                              CURLMinfo_offt info,
                              curl_off_t *pvalue);
 

DESCRIPTION

Get the info kept in the multi handle. If the info is not applicable, this function returns CURLM_UNKNOWN_OPTION.  

OPTIONS

The following information can be extracted:
CURLMINFO_XFERS_CURRENT
See CURLMINFO_XFERS_CURRENT(3).
CURLMINFO_XFERS_RUNNING
See CURLMINFO_XFERS_RUNNING(3).
CURLMINFO_XFERS_PENDING
See CURLMINFO_XFERS_PENDING(3).
CURLMINFO_XFERS_DONE
See CURLMINFO_XFERS_DONE(3).
CURLMINFO_XFERS_ADDED
See CURLMINFO_XFERS_ADDED(3).
 

PROTOCOLS

This functionality affects all supported protocols  

EXAMPLE

int main(void)
{
  /* init a multi stack */
  CURLM *multi = curl_multi_init();
  CURL *curl = curl_easy_init();
  curl_off_t n;

  if(curl) {
    /* add the transfer */
    curl_multi_add_handle(multi, curl);

    curl_multi_get_offt(multi, CURLMINFO_XFERS_ADDED, &n);
    /* on successful add, n is 1 */
  }
}
 

AVAILABILITY

Added in curl 8.16.0  

RETURN VALUE

This function returns a CURLMcode indicating success or error.

CURLM_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3).  

SEE ALSO

curl_multi_add_handle(3), curl_multi_remove_handle(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
PROTOCOLS
EXAMPLE
AVAILABILITY
RETURN VALUE
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 12.4 ms