mirror of
https://github.com/curl/curl.git
synced 2026-07-05 06:07:16 +03:00
lib: add curl_multi_waitfds
New function call, similar to curl_multi_fdset() Closes #13135
This commit is contained in:
parent
e469ac4494
commit
02beac6bb6
12 changed files with 553 additions and 2 deletions
|
|
@ -464,6 +464,20 @@ typedef int (*curl_push_callback)(CURL *parent,
|
|||
struct curl_pushheaders *headers,
|
||||
void *userp);
|
||||
|
||||
/*
|
||||
* Name: curl_multi_waitfds()
|
||||
*
|
||||
* Desc: Ask curl for fds for polling. The app can use these to poll on.
|
||||
* We want curl_multi_perform() called as soon as one of them are
|
||||
* ready. Passing zero size allows to get just a number of fds.
|
||||
*
|
||||
* Returns: CURLMcode type, general multi error code.
|
||||
*/
|
||||
CURL_EXTERN CURLMcode curl_multi_waitfds(CURLM *multi,
|
||||
struct curl_waitfd *ufds,
|
||||
unsigned int size,
|
||||
unsigned int *fd_count);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* end of extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue