Sockets on Solaris
Julian Seward (Intl Vendor)
v-julsew@microsoft.com
Wed, 7 Nov 2001 02:17:53 -0800
We just tried the following prog on our Solaris build of
5.02.1:
import System
import Socket
import IO
main
=3D do d <- connectTo "localhost" (PortNumber 7)
hPutStr d "fiofofofof\n"=20
hFlush d
c <- hGetContents d
putStr c
and it works fine for us.
The bug you report has exactly the symptoms of a bug we fixed
in 5.02. You are definitely using 5.02.1, yes?
J
| -----Original Message-----
| From: Luis Diego Fallas [mailto:luisdiegofallas@yahoo.com]=20
| Sent: Wednesday, November 07, 2001 12:57 AM
| To: glasgow-haskell-users@haskell.org
| Subject: Sockets on Solaris=20
|=20
|=20
| Hi everyone,
|=20
| I'm having trouble using the Socket module on
| Solaris.
|=20
| The following program:
|=20
| import System
| import Socket
| import IO
|=20
| main =3D
| do
| d <- connectTo "localhost" (PortNumber 80)
| hPutStr d "GET / HTTP/1.0\n\n"
| hFlush d
| c <- (hGetContents d)
| putStr c
|=20
| =20
| fails with:
|=20
| Fail: invalid argument
| Action: getSocketOption
| Reason: Invalid argument
|=20
| I'm using ghc-5.02.1 .
|=20
| Thanks.
|=20
|=20
|=20
| __________________________________________________
| Do You Yahoo!?
| Find a job, post your resume.
| http://careers.yahoo.com
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgo| w-haskell-users
|=20