| Safe Haskell | None |
|---|
System.Posix.IO.Select
Description
Interface to the select(2) POSIX function.
TODO:
- Make a version of
that shows which file descriptors are ready. (Needs a type for fd_set that can be passed to and from C).select
Documentation
select :: [Fd] -> [Fd] -> [Fd] -> Timeout -> IO CIntSource
calls the
select readFds writeFds exceptFds timeoutselect(2) function with the file descriptors in readFds as the
FD set to watch for read readiness, and similarly for writeFds
and exceptFds, with timeout specifying the timeout. The return
value is that of the call.