I just wanted to play a bit with the Socket library comming with Haskell. However, whatever I try to do, I get the following runtime error, eg in ghci:
Socket> connectTo "pcsep" (PortNumber 80) *** Exception: does not exist Action: getProtocolByName Reason: no such protocol entry
Seems that I am doing something wrong here?
Which platform are you on? (there is a bug in 5.02's networking library which means that Socket.conncetTo might not work - but I haven't seen it produce the error that you quote above). Simon
as I have learnt now, there are problems with Sockets and ghc 5.02: http://haskell.org/pipermail/glasgow-haskell-users/2001-October/001008.html Unfortunately, I am currently working on WinNT and would not like to go back and install ghc4.08. Is there an easy way to patch this problem in my 5.02 installation. Sven Eric
In local.glasgow-haskell-users, you wrote:
Unfortunately, I am currently working on WinNT and would not like to go back and install ghc4.08. Is there an easy way to patch this problem in my 5.02 installation.
Maybe you're just lacking the Wintendo equivalent of /etc/protocols, but I don't know how Windows/cygwin handle these things. You could modify SocketPrim to use the number "6" instead of trying to do the getprotobyname lookup, but that's not a real remedy. -- Volker Stolz * vs@foldr.org * PGP + S/MIME
participants (3)
-
Simon Marlow -
Sven Eric Panitz -
Volker Stolz