
13 Nov
2001
13 Nov
'01
11:54 a.m.
I'm having trouble using the Socket module on Solaris.
The following program:
import System import Socket import IO
main = do d <- connectTo "localhost" (PortNumber 80) hPutStr d "GET / HTTP/1.0\n\n" hFlush d c <- (hGetContents d) putStr c
fails with:
Fail: invalid argument Action: getSocketOption Reason: Invalid argument
It turns out there is still a problem with SocketPrim.getSocketOpt (which is used indirectly by Socket.connectTo) which shows up on Solaris. It'll be fixed in 5.02.2. Cheers, Simon
8594
Age (days ago)
8594
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow