Re: fun with sockets (ghc-5.04.1)

2003-03-19 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: >> After processing a random number of connections, the server dies with >> >> Fail: invalid argument >> Action: accept >> Reason: Invalid argument > [...] > > I don't know what's wrong, I'm afraid. Any chance you could supply us > with a working examp

RE: fun with sockets (ghc-5.04.1)

2003-03-19 Thread Simon Marlow
Peter, [...] > After processing a random number of connections, the server dies with > > Fail: invalid argument > Action: accept > Reason: Invalid argument [...] I don't know what's wrong, I'm afraid. Any chance you could supply us with a working example that demonstrates the bug? Cheers,

fun with sockets (ghc-5.04.1)

2003-03-11 Thread Peter Thiemann
Hi, I'm running into a problem using server code (running on a UNIX domain socket) that I basically snatched from Simon Marlow's web server: ++ mainLoop sock defUser getMs = do putStrLn "Accepting connections..." installHan

Re: sockets (ghc-5.04.1)

2003-02-07 Thread Volker Stolz
Am 06. Feb 2003 um 21:53 CET schrieb Peter Thiemann: > and then duplicated part of my code. One thing that I found annoying > was that the Protocol argument of > Network.Socket.socket > is not well specified. The type Protocol is abstract, but is a member > of class Read. However, the Read syntax i

Re: sockets (ghc-5.04.1)

2003-02-06 Thread Peter Thiemann
Volker, I only saw your answer today since it was filed in my Haskell-mailing-list folder. Indeed, I've moved on to import Network.Socket and then duplicated part of my code. One thing that I found annoying was that the Protocol argument of Network.Socket.socket is not well specified. The type P

Re: sockets (ghc-5.04.1)

2003-01-16 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: > I have a program that uses INET sockets and I wanted to change it to > use Unix domain sockets. Here is the relevant code: > > sock <- listenOn portID > (h, hostname, portnumber) <- accept sock > > I get an error message when running it with > port

sockets (ghc-5.04.1)

2003-01-15 Thread Peter Thiemann
Hi, I have a program that uses INET sockets and I wanted to change it to use Unix domain sockets. Here is the relevant code: import Network withSocketsDo $ do sock <- listenOn portID (h, hostname, portnumber) <- accept sock while this code works fine with portID = PortNumber (toEnum 9099