Network Exception

Dinko Tenev dinko.tenev at gmail.com
Fri Oct 14 10:30:56 EDT 2005


It looks odd to me, because the service is not particularly meaningful to
the transport, and thus not a crucial piece of information. Unless I am
missing something, this could be a bug in the Network module.

You may want to try the lower-level stuff from Network.Socket instead.

Cheers,
Dinko


On 10/14/05, Arias <arias at elleondeoro.com> wrote:
>
> Hi,
>
> I've a problem, I'm using this code on GHC compiler version 6.4.1:
>
> --- BEGIN ---
> module Main where
> import System.IO
> import Network
>
> main = withSocketsDo $ do
> handle <- connectTo "localhost" ( PortNumber 8080 )
> hSetBuffering handle LineBuffering
> hClose handle
> --- END ---
>
> The problems is that it throws an exception at connectTo, the exception
> is:
>
> getServiceEntry: does not exist (no such service entry)
>
> The server and the port is correct, I have apache listening on port 8080
> and if I put http://localhost:8080/ on browser it loads a web page.
>
> Do somebody knows what it happens and how to fix it? thanks.
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/glasgow-haskell-users/attachments/20051014/e0c43348/attachment-0001.htm


More information about the Glasgow-haskell-users mailing list