1curl_multi_init(3)              libcurl Manual              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  CURLM handle to be used as input to all the
15       other multi-functions, sometimes referred to as a multi handle in  some
16       places  in  the documentation. This init call MUST have a corresponding
17       call to curl_multi_cleanup(3) when the operation is complete.
18

EXAMPLE

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

AVAILABILITY

28       Added in 7.9.6
29

RETURN VALUE

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

SEE ALSO

35       curl_multi_cleanup(3),curl_global_init(3),curl_easy_init(3)
36
37
38
39libcurl 7.82.0                 January 04, 2022             curl_multi_init(3)
Impressum