/curl/docs/examples/ |
H A D | multi-double.c | 41 CURLM *multi_handle; in main() local 55 multi_handle = curl_multi_init(); in main() 58 curl_multi_add_handle(multi_handle, http_handle); in main() 59 curl_multi_add_handle(multi_handle, http_handle2); in main() 64 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 68 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 74 msg = curl_multi_info_read(multi_handle, &queued); in main() 84 curl_multi_remove_handle(multi_handle, http_handle); in main() 85 curl_multi_remove_handle(multi_handle, http_handle2); in main() 87 curl_multi_cleanup(multi_handle); in main()
|
H A D | multi-single.c | 41 CURLM *multi_handle; in main() local 52 multi_handle = curl_multi_init(); in main() 55 curl_multi_add_handle(multi_handle, http_handle); in main() 58 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 62 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 71 curl_multi_remove_handle(multi_handle, http_handle); in main() 75 curl_multi_cleanup(multi_handle); in main()
|
H A D | multi-app.c | 47 CURLM *multi_handle; in main() local 66 multi_handle = curl_multi_init(); in main() 70 curl_multi_add_handle(multi_handle, handles[i]); in main() 73 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 77 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 84 while((msg = curl_multi_info_read(multi_handle, &msgs_left)) != NULL) { in main() 108 curl_multi_remove_handle(multi_handle, handles[i]); in main() 112 curl_multi_cleanup(multi_handle); in main()
|
H A D | multi-formadd.c | 43 CURLM *multi_handle; in main() local 76 multi_handle = curl_multi_init(); in main() 81 if(curl && multi_handle) { in main() 92 curl_multi_add_handle(multi_handle, curl); in main() 95 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 99 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 106 curl_multi_cleanup(multi_handle); in main()
|
H A D | multi-post.c | 38 CURLM *multi_handle; in main() local 47 multi_handle = curl_multi_init(); in main() 49 if(curl && multi_handle) { in main() 79 curl_multi_add_handle(multi_handle, curl); in main() 82 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 86 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 92 curl_multi_cleanup(multi_handle); in main()
|
H A D | multi-legacy.c | 53 CURLM *multi_handle; in main() local 72 multi_handle = curl_multi_init(); in main() 76 curl_multi_add_handle(multi_handle, handles[i]); in main() 79 curl_multi_perform(multi_handle, &still_running); in main() 101 curl_multi_timeout(multi_handle, &curl_timeo); in main() 111 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 146 curl_multi_perform(multi_handle, &still_running); in main() 153 while((msg = curl_multi_info_read(multi_handle, &msgs_left)) != NULL) { in main() 175 curl_multi_cleanup(multi_handle); in main()
|
H A D | crawler.c | 120 size_t follow_links(CURLM *multi_handle, memory *mem, char *url) in follow_links() argument 154 curl_multi_add_handle(multi_handle, make_handle(link)); in follow_links() 174 CURLM *multi_handle = curl_multi_init(); in main() local 176 curl_multi_setopt(multi_handle, CURLMOPT_MAX_HOST_CONNECTIONS, 6L); in main() 184 curl_multi_add_handle(multi_handle, make_handle(start_page)); in main() 192 curl_multi_wait(multi_handle, NULL, 0, 1000, &numfds); in main() 193 curl_multi_perform(multi_handle, &still_running); in main() 197 while((m = curl_multi_info_read(multi_handle, &msgs_left))) { in main() 213 pending += follow_links(multi_handle, mem, url); in main() 225 curl_multi_remove_handle(multi_handle, handle); in main() [all …]
|
H A D | http2-serverpush.c | 213 CURLM *multi_handle; in main() local 222 multi_handle = curl_multi_init(); in main() 233 curl_multi_add_handle(multi_handle, easy); in main() 235 curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); in main() 236 curl_multi_setopt(multi_handle, CURLMOPT_PUSHFUNCTION, server_push_callback); in main() 237 curl_multi_setopt(multi_handle, CURLMOPT_PUSHDATA, &transfers); in main() 241 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 245 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 258 m = curl_multi_info_read(multi_handle, &msgq); in main() 262 curl_multi_remove_handle(multi_handle, e); in main() [all …]
|
H A D | multi-debugcallback.c | 126 CURLM *multi_handle; in main() local 139 multi_handle = curl_multi_init(); in main() 142 curl_multi_add_handle(multi_handle, http_handle); in main() 145 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 149 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 156 curl_multi_cleanup(multi_handle); in main()
|
H A D | http2-download.c | 186 CURLM *multi_handle; in main() local 200 multi_handle = curl_multi_init(); in main() 206 curl_multi_add_handle(multi_handle, trans[i].easy); in main() 209 curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); in main() 212 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 216 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 223 curl_multi_remove_handle(multi_handle, trans[i].easy); in main() 227 curl_multi_cleanup(multi_handle); in main()
|
H A D | http2-upload.c | 271 CURLM *multi_handle; in main() local 292 multi_handle = curl_multi_init(); in main() 298 curl_multi_add_handle(multi_handle, trans[i].hnd); in main() 301 curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); in main() 304 curl_multi_setopt(multi_handle, CURLMOPT_MAX_HOST_CONNECTIONS, 1L); in main() 307 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 311 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 318 curl_multi_cleanup(multi_handle); in main() 321 curl_multi_remove_handle(multi_handle, trans[i].hnd); in main()
|
/curl/include/curl/ |
H A D | multi.h | 136 CURL_EXTERN CURLMcode curl_multi_add_handle(CURLM *multi_handle, 158 CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle, 172 CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle, 186 CURL_EXTERN CURLMcode curl_multi_poll(CURLM *multi_handle, 199 CURL_EXTERN CURLMcode curl_multi_wakeup(CURLM *multi_handle); 217 CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle, 230 CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle); 260 CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle, 344 CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle, 409 CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle, [all …]
|
/curl/tests/libtest/ |
H A D | lib560.c | 45 CURLM *multi_handle = NULL; in test() local 65 multi_init(multi_handle); in test() 68 multi_add_handle(multi_handle, http_handle); in test() 71 multi_perform(multi_handle, &still_running); in test() 92 multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 101 multi_perform(multi_handle, &still_running); in test() 110 curl_multi_cleanup(multi_handle); in test()
|
H A D | lib1531.c | 39 CURLM *multi_handle; in test() local 53 multi_handle = curl_multi_init(); in test() 56 curl_multi_add_handle(multi_handle, easy); in test() 65 curl_multi_perform(multi_handle, &still_running); in test() 89 curl_multi_timeout(multi_handle, &curl_timeo); in test() 99 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 134 curl_multi_perform(multi_handle, &still_running); in test() 143 msg = curl_multi_info_read(multi_handle, &msgs_left); in test() 153 curl_multi_cleanup(multi_handle); in test()
|
/curl/tests/http/clients/ |
H A D | h2-serverpush.c | 210 CURLM *multi_handle; in main() local 221 multi_handle = curl_multi_init(); in main() 222 curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); in main() 223 curl_multi_setopt(multi_handle, CURLMOPT_PUSHFUNCTION, server_push_callback); in main() 224 curl_multi_setopt(multi_handle, CURLMOPT_PUSHDATA, &transfers); in main() 232 curl_multi_add_handle(multi_handle, easy); in main() 235 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 239 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 251 m = curl_multi_info_read(multi_handle, &msgq); in main() 255 curl_multi_remove_handle(multi_handle, e); in main() [all …]
|
H A D | hx-download.c | 293 CURLM *multi_handle; in main() local 392 multi_handle = curl_multi_init(); in main() 393 curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); in main() 413 curl_multi_add_handle(multi_handle, t->easy); in main() 421 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 425 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 433 m = curl_multi_info_read(multi_handle, &msgq); in main() 437 curl_multi_remove_handle(multi_handle, e); in main() 461 curl_multi_remove_handle(multi_handle, t->easy); in main() 493 curl_multi_add_handle(multi_handle, t->easy); in main() [all …]
|
H A D | h2-pausing.c | 205 CURLM *multi_handle; in main() local 300 multi_handle = curl_multi_init(); in main() 301 if(!multi_handle) in main() 305 if(curl_multi_add_handle(multi_handle, handles[i].h) != CURLM_OK) in main() 311 if(curl_multi_perform(multi_handle, &still_running) != CURLM_OK) in main() 345 if(curl_multi_poll(multi_handle, NULL, 0, 100, &numfds) != CURLM_OK) in main() 349 while((msg = curl_multi_info_read(multi_handle, &msgs_left)) != NULL) { in main() 391 curl_multi_remove_handle(multi_handle, handles[i].h); in main() 400 curl_multi_cleanup(multi_handle); in main()
|
H A D | hx-upload.c | 330 CURLM *multi_handle; in main() local 487 multi_handle = curl_multi_init(); in main() 488 curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); in main() 499 curl_multi_add_handle(multi_handle, t->easy); in main() 507 CURLMcode mc = curl_multi_perform(multi_handle, &still_running); in main() 511 mc = curl_multi_poll(multi_handle, NULL, 0, 1000, NULL); in main() 519 m = curl_multi_info_read(multi_handle, &msgq); in main() 523 curl_multi_remove_handle(multi_handle, e); in main() 547 curl_multi_remove_handle(multi_handle, t->easy); in main() 578 curl_multi_add_handle(multi_handle, t->easy); in main() [all …]
|
/curl/docs/libcurl/ |
H A D | curl_multi_poll.md | 26 CURLMcode curl_multi_poll(CURLM *multi_handle, 100 CURLM *multi_handle; 105 curl_multi_add_handle(multi_handle, easy_handle); 111 mc = curl_multi_perform(multi_handle, &still_running); 121 mc = curl_multi_poll(multi_handle, &myown, 1, 1000, &numfds); 136 curl_multi_remove_handle(multi_handle, easy_handle);
|
H A D | curl_multi_cleanup.md | 26 CURLMcode curl_multi_cleanup(CURLM *multi_handle); 48 Passing in a NULL pointer in *multi_handle* makes this function return 51 Any use of the **multi_handle** after this function has been called and have
|
H A D | curl_multi_waitfds.md | 36 *poll(2)*'s *pollfd* structure from a given multi_handle. 38 These structures can be used for polling on multi_handle file descriptors in a 44 If a number of descriptors used by the multi_handle is greater than the 48 that on returns specifies the number of descriptors used by the multi_handle to
|
H A D | curl_multi_remove_handle.md | 25 CURLMcode curl_multi_remove_handle(CURLM *multi_handle, CURL *easy_handle); 30 Removes a given *easy_handle* from the *multi_handle*. This makes the
|
H A D | curl_multi_add_handle.md | 27 CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *easy_handle); 32 Adds the *easy handle* to the *multi_handle*.
|
H A D | curl_multi_socket_all.md | 27 CURLMcode curl_multi_socket_all(CURLM *multi_handle,
|
H A D | curl_multi_perform.md | 29 CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles); 38 When an application has found out there is data available for the multi_handle
|