[Haskell-cafe] "getServiceEntry: does not exist" on Windows
Joel Reymont
joelr1 at gmail.com
Wed Oct 19 11:35:18 EDT 2005
Folks,
I have a silly Windows issue:
*** Exception: getServiceEntry: does not exist (no such service entry)
I connect thusly and don't see myself using any services. I also do
not have this issue on Mac OSX. Any ideas? I googled for this issue
but don't even know if there's a protocols file on Windows, much less
where it is and why "tcp" might not be there :-).
connect :: HostName -> Int -> IO Handle
connect h p = connectTo h $ PortNumber $ fromIntegral p
main = withSocketsDo $ do
connect "10.0.0.1" 15667
Thanks, Joel
--
http://wagerlabs.com/
More information about the Haskell-Cafe
mailing list