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
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,
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
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
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
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
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