]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/docs/libcurl/curl_multi_perform.3
hello world
[icculus/iodoom3.git] / neo / curl / docs / libcurl / curl_multi_perform.3
1 .\" $Id: curl_multi_perform.3,v 1.4 2004/03/15 11:37:38 bagder Exp $
2 .\"
3 .TH curl_multi_perform 3 "1 March 2002" "libcurl 7.9.5" "libcurl Manual"
4 .SH NAME
5 curl_multi_perform - reads/writes available data from each easy handle
6 .SH SYNOPSIS
7 #include <curl/curl.h>
8
9 CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles);
10 .ad
11 .SH DESCRIPTION
12 When the app thinks there's data available for the multi_handle, it should
13 call this function to read/write whatever there is to read or write right
14 now. curl_multi_perform() returns as soon as the reads/writes are done. This
15 function does not require that there actually is any data available for
16 reading or that data can be written, it can be called just in case. It will
17 write the number of handles that still transfer data in the second argument's
18 integer-pointer.
19 .SH "RETURN VALUE"
20 CURLMcode type, general libcurl multi interface error code.
21
22 If you receive \fICURLM_CALL_MULTI_PERFORM\fP, this basicly means that you
23 should call \fIcurl_multi_perform\fP again, before you select() on more
24 actions. You don't have to do it immediately, but the return code means that
25 libcurl may have more data available to return or that there may be more data
26 to send off before it is "satisfied".
27
28 NOTE that this only returns errors etc regarding the whole multi stack. There
29 might still have occurred problems on invidual transfers even when this
30 function returns OK.
31 .SH "TYPICAL USAGE"
32 Most application will use \fIcurl_multi_fdset(3)\fP to get the multi_handle's
33 file descriptors, then it'll wait for action on them using select() and as
34 soon as one or more of them are ready, \fIcurl_multi_perform(3)\fP gets
35 called.
36 .SH "SEE ALSO"
37 .BR curl_multi_cleanup "(3)," curl_multi_init "(3)," curl_multi_fdset "(3)"