sockets and handles in ghc

Jurriaan Hage jur@cs.uu.nl
Fri, 27 Jun 2003 15:05:53 +0200


Hello,

I've been using sockets and handles with ghc-5.04.3.
The strange thing is now that when I make a handle
out of a socket and ask whether the handle is readable
or writable, it returns True for the former and False
for the latter, although sockets are bidirectional. And yes,
I am able to read from and write the handle notwithstanding.
I also got an exception once when working with these
things and the debug information I got then, showed
that both should have returned True instead.

Can anyone enlighten me?

thanks,
Jur
-- 
http://www.cs.uu.nl/people/jur/progrock.html -- jur@cs.uu.nl
If e-mail does not work try jurriaanhage@hotmail.com