diff options
Diffstat (limited to 'docs/libcurl/curl_multi_socket_action.3')
-rw-r--r-- | docs/libcurl/curl_multi_socket_action.3 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/libcurl/curl_multi_socket_action.3 b/docs/libcurl/curl_multi_socket_action.3 index 1fe58268f..5308ff33a 100644 --- a/docs/libcurl/curl_multi_socket_action.3 +++ b/docs/libcurl/curl_multi_socket_action.3 @@ -88,11 +88,19 @@ callback has been told. 8, When activity is detected, call curl_multi_socket_action() for the socket(s) that got action. If no activity is detected and the timeout expires, call \fIcurl_multi_socket_action(3)\fP with \fICURL_SOCKET_TIMEOUT\fP. +.SH EXAMPLE +.nf +/* the event-library gets told when there activity on the socket 'fd', + which we translate to a call to curl_multi_socket_action() */ +int running; +rc = curl_multi_socket_action(multi_handle, fd, EVENT, + &running); +.fi +.SH AVAILABILITY +This function was added in libcurl 7.15.4, and is deemed stable since 7.16.0. .SH RETURN VALUE CURLMcode type, general libcurl multi interface error code. See \fIlibcurl-errors(3)\fP -.SH AVAILABILITY -This function was added in libcurl 7.15.4, and is deemed stable since 7.16.0. .SH "SEE ALSO" .BR curl_multi_cleanup "(3), " curl_multi_init "(3), " .BR curl_multi_fdset "(3), " curl_multi_info_read "(3), " |