Sockets on Solaris
Luis Diego Fallas
luisdiegofallas@yahoo.com
Wed, 7 Nov 2001 07:05:20 -0800 (PST)
I've tried your example on my machine and works fine,
but when I change the hostname(in the connectTo call)
to another Solaris machine I get the same error .
I'm using the binary package of ghc 5.02.1 from
http://www.haskell.org/ghc/
--- "Julian Seward (Intl Vendor)"
<v-julsew@microsoft.com> wrote:
>
> We just tried the following prog on our Solaris
> build of
> 5.02.1:
>
> import System
> import Socket
> import IO
>
> main
> = do d <- connectTo "localhost" (PortNumber 7)
> hPutStr d "fiofofofof\n"
> 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]
> | Sent: Wednesday, November 07, 2001 12:57 AM
> | To: glasgow-haskell-users@haskell.org
> | Subject: Sockets on Solaris
> |
> |
> | Hi everyone,
> |
> | 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
> |
> | I'm using ghc-5.02.1 .
> |
> | Thanks.
> |
> |
> |
> | __________________________________________________
> | Do You Yahoo!?
> | Find a job, post your resume.
> | http://careers.yahoo.com
> |
> | _______________________________________________
> | Glasgow-haskell-users mailing list
> | Glasgow-haskell-users@haskell.org
> | http://www.haskell.org/mailman/listinfo/glasgo|
> w-haskell-users
> |
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users@haskell.org
>
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com