selectselect rbits , wbits , ebits , timeout
The four-argument The$rbits = $wbits = $ebits = ""; vec($rbits, fileno(STDIN), 1) = 1; vec($wbits, fileno(STDOUT), 1) = 1; $ein = $rin | $win;
select
call blocks until one or more file descriptors is
ready for reading, writing, or reporting an error condition.
timeout
is given in seconds and tells
select
how long to
wait.
Copyright © 2001 O'Reilly & Associates. All rights reserved. |
|