Network Exception

Simon Marlow simonmar at microsoft.com
Thu Oct 13 04:59:32 EDT 2005


On 12 October 2005 17:14, Arias wrote:

> My name Iván Arias, I'm trying to connect to a server using the
> Network library, the code that I'm using is something like this:
> 
> --- BEGIN ---
> module Main where
> import System.IO
> import Network
> 
> main = do
>  handle <- connectTo "localhost" ( PortNumber 8080 )
>  hClose handle
> --- END ---
> 
> It compiles correctly, but when I try to run this code, it throws an
> exception at connectTo. The exception message is this:
> 
> - getServiceEntry: does not exists (No such service entry)

I can't see any reason that would happen.  Is that the actual code you are using?

Cheers,
	Simon


More information about the Libraries mailing list