Socket library

Simon Marlow simonmar@microsoft.com
Wed, 24 Oct 2001 15:14:17 +0100


> 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:
>=20
> Socket>  connectTo "pcsep" (PortNumber 80)
> *** Exception: does not exist
> Action: getProtocolByName
> Reason: no such protocol entry
>=20
>=20
> 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