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.<br>
<br>
You may want to try the lower-level stuff from Network.Socket instead.<br>
<br>
Cheers,<br>
Dinko<br>
<br><br><div><span class="gmail_quote">On 10/14/05, <b class="gmail_sendername">Arias</b> &lt;<a href="mailto:arias@elleondeoro.com">arias@elleondeoro.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br><br>I've a problem, I'm using this code on GHC compiler version 6.4.1:<br><br>--- BEGIN ---<br>module Main where<br>import System.IO<br>import Network<br><br>main = withSocketsDo $ do<br>handle &lt;- connectTo &quot;localhost&quot; ( PortNumber 8080 )
<br>hSetBuffering handle LineBuffering<br>hClose handle<br>--- END ---<br><br>The problems is that it throws an exception at connectTo, the exception is:<br><br>getServiceEntry: does not exist (no such service entry)<br>
<br>
The server and the port is correct, I have apache listening on port 8080<br>and if I put <a href="http://localhost:8080/">http://localhost:8080/</a> on browser it loads a web page.<br><br>Do somebody knows what it happens and how to fix it? thanks.
<br>_______________________________________________<br>Glasgow-haskell-users mailing list<br><a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users">

http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br></blockquote></div><br>