
I need to find a way to determine whether data is available, for reading, on a socket connection, without blocking a thread. The equivalent of select() or poll() would do the trick. I don't need to get the information for all open files, as you can in select and poll, so a way to find out if there is data available on a single socket (or handle) is sufficient. TIA, -- Seth Kurtzberg MIS Corp 480-661-1849 seth@cql.com

In local.glasgow-haskell-users, you wrote:
I need to find a way to determine whether data is available, for reading, on a socket connection, without blocking a thread.
GHC.IO.hWaitForInput should do what you want. Notice that this usually means that your problem could be solved in a cleaner way using threads. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine
participants (2)
-
Seth Kurtzberg
-
Volker Stolz