
13 Oct
2005
13 Oct
'05
4:59 a.m.
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