1curl_multi_init(3)                  libcurl                 curl_multi_init(3)
2
3
4

NAME

6       curl_multi_init - create a multi handle
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLM *curl_multi_init();
12

DESCRIPTION

14       This  function  returns a pointer to a CURLM handle to be used as input
15       to all the other multi-functions, sometimes referred to as a multi han‐
16       dle  in  some  places  in the documentation. This init call MUST have a
17       corresponding call to curl_multi_cleanup(3) when the operation is  com‐
18       plete.
19

EXAMPLE

21       /* init a multi stack */
22       multi_handle = curl_multi_init();
23
24       /* add individual transfers */
25       curl_multi_add_handle(multi_handle, http_handle);
26       curl_multi_add_handle(multi_handle, http_handle2);
27

AVAILABILITY

29       Added in 7.9.6
30

RETURN VALUE

32       If  this function returns NULL, something went wrong and you cannot use
33       the other curl functions.
34

SEE ALSO

36       curl_multi_cleanup(3),curl_global_init(3),curl_easy_init(3)
37
38
39
40libcurl 8.2.1                   April 26, 2023              curl_multi_init(3)
Impressum