RE: problems with ghc-5.02 Socket module (SunOS)

15 Oct
2001
15 Oct
'01
11:26 a.m.
what am I doing wrong? it worked before ... this program
module Main (main) where import IO import Socket main = do h <- connectTo "theopc.informatik.uni-leipzig.de" ( PortNumber $ 9999 ) putStrLn "connected" hClose h
results in
Fail: invalid argument Action: getSocketOption Reason: Invalid argument
even though there IS a listener on the socket (other programs can connect to it).
There are two bugs in SocketPrim.getSocketOption, which are causing connectTo to fail in the way you reported. The fix will be in 5.02.1. Cheers, Simon
8623
Age (days ago)
8623
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow