Hướng dẫn php stream_select
(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) Show stream_select — Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by seconds and microseconds 说明stream_select( 参数read The streams listed in the write The streams listed in the except The streams listed in the
seconds The If 警告 Using a timeout value of It is much better to specify a timeout value of a few seconds, although if you need to be checking and running other code concurrently, using a timeout value of at least Remember that the timeout value is the maximum time that will elapse; stream_select() will return as soon as the requested streams are ready for use. microseconds See 返回值 On success stream_select() returns the number of stream resources contained in the modified
arrays, which may be zero if the timeout expires before anything interesting happens. On error 更新日志
范例示例 #1 stream_select() Example This example checks to see if data has arrived for reading on either
注释
参见
php at richardneill dot org ¶ 13 years ago
maartenwolzak at gmail dot com ¶ 15 years ago
aidan at php dot net ¶ 18 years ago
stream_select($r, $w = null, $e = null, 0, calctimeout($maxtime, $starttime)) !== 0) Martin ¶ 4 years ago
1) {// look for new connections rob at associatedtechs dot com ¶ 8 years ago
mark2xv at gmail dot com ¶ 9 years ago
phpdoc at shemesh dot biz ¶ 17 years ago
doingitwrong at mailismagic dot com ¶ 7 years ago
Sitsofe ¶ 3 years ago
asphp at dsgml dot com ¶ 6 years ago
lynch at php dot net ¶ 12 years ago
Ben ¶ 15 years ago
aidan at aidans dot org ¶ 15 years ago
bluej100@gmail ¶ 15 years ago
aks at esoft dot dk ¶ 11 years ago
Maxdamantus ¶ 14 years ago
|