or download this
can_read ( [ TIMEOUT ] )
Return an array of handles that are ready for reading. "TIMEOU
+T" is
the maximum amount of time to wait before returning an empty l
+ist,
in seconds, possibly fractional. If "TIMEOUT" is not given and
+ any
handles are registered then the call will block.