RE: Network Exception

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

Yes, is the code that I'm using. I try it in GHC version 6.4.1 and HUGS last version, and I allways have the same matter :( Simon Marlow escribió:
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 _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries
participants (2)
-
Arias
-
Simon Marlow