curl_multi_socket_all.3 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .\" generated by cd2nroff 0.1 from curl_multi_socket_all.md
  2. .TH curl_multi_socket_all 3 "2025-01-17" libcurl
  3. .SH NAME
  4. curl_multi_socket_all \- reads/writes available data for all easy handles
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLMcode curl_multi_socket_all(CURLM *multi_handle,
  9. int *running_handles);
  10. .fi
  11. .SH DESCRIPTION
  12. This function is deprecated. Do not use. See \fIcurl_multi_socket_action(3)\fP
  13. instead.
  14. At return, the integer \fBrunning_handles\fP points to contains the number of
  15. still running easy handles within the multi handle. When this number reaches
  16. zero, all transfers are complete/done.
  17. Force libcurl to (re\-)check all its internal sockets and transfers instead of
  18. just a single one by calling \fIcurl_multi_socket_all(3)\fP. Note that there should
  19. not be any reason to use this function.
  20. .SH PROTOCOLS
  21. This functionality affects all supported protocols
  22. .SH EXAMPLE
  23. .nf
  24. int main(void)
  25. {
  26. int running;
  27. int rc;
  28. CURLM *multi;
  29. rc = curl_multi_socket_all(multi, &running);
  30. }
  31. .fi
  32. .SH AVAILABILITY
  33. Added in curl 7.15.4
  34. .SH RETURN VALUE
  35. CURLMcode type, general libcurl multi interface error code.
  36. The return code is for the whole multi stack. Problems still might have
  37. occurred on individual transfers even when one of these functions return OK.
  38. .SH SEE ALSO
  39. .BR curl_multi_cleanup (3),
  40. .BR curl_multi_fdset (3),
  41. .BR curl_multi_info_read (3),
  42. .BR curl_multi_init (3),
  43. .BR the hiperfifo.c example