PHP curl_multi_select function

PHP Calendar 参考手册PHP cURL Reference Manual

(PHP 5)

curl_multi_select — Wait for activity on any curl_multi connection


Description

int curl_multi_select ( resource $mh [, float $timeout = 1.0 ] )

Blocks until there is activity on the cURL multi connection.


Parameters

mh

A cURL multi handle returned by curl_multi_init().

timeout

Time to wait for a response, in seconds.


Return Values

On success, returns the number of descriptors in the descriptor set. On failure, returns -1 if the select failed, otherwise returns the timeout (from the underlying select system call).


PHP Calendar 参考手册PHP cURL Reference Manual

Other Extensions