"getServiceEntry: does not exist" on Windows

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/

I'm running this code at the ghci prompt by loading foo.hs and then running main. Don't know if this helps. On Oct 19, 2005, at 4:35 PM, Joel Reymont wrote:
*** Exception: getServiceEntry: does not exist (no such service entry) [...] connect :: HostName -> Int -> IO Handle connect h p = connectTo h $ PortNumber $ fromIntegral p
main = withSocketsDo $ do connect "10.0.0.1" 15667

I checked my Windows protocol file in system32/drivers/etc and it has tcp 6 TCP # Transmission control protocol Still, I get the following: Prelude> Network.BSD.getProtocolNumber "tcp" *** Exception: getServiceEntry: does not exist (no such service entry) Any tips? Thanks, Joel On Oct 19, 2005, at 4:39 PM, Joel Reymont wrote:
*** Exception: getServiceEntry: does not exist (no such service entry) [...] connect :: HostName -> Int -> IO Handle connect h p = connectTo h $ PortNumber $ fromIntegral p
main = withSocketsDo $ do connect "10.0.0.1" 15667

This fails also but the C call to getprotobyname succeeds. Prelude> Network.BSD.getProtocolByName "tcp" *** Exception: getServiceEntry: does not exist (no such service entry) On Oct 19, 2005, at 4:51 PM, Joel Reymont wrote:
I checked my Windows protocol file in system32/drivers/etc and it has
tcp 6 TCP # Transmission control protocol
Still, I get the following:
Prelude> Network.BSD.getProtocolNumber "tcp" *** Exception: getServiceEntry: does not exist (no such service entry)

Folks, ideas on this? It's a major showstopper for me since it prevents me from deploying the Haskell app for my customer :(. Thanks, Joel On Oct 19, 2005, at 5:06 PM, Joel Reymont wrote:
This fails also but the C call to getprotobyname succeeds.
Prelude> Network.BSD.getProtocolByName "tcp" *** Exception: getServiceEntry: does not exist (no such service entry)
On Oct 19, 2005, at 4:51 PM, Joel Reymont wrote:
I checked my Windows protocol file in system32/drivers/etc and it has
tcp 6 TCP # Transmission control protocol
Still, I get the following:
Prelude> Network.BSD.getProtocolNumber "tcp" *** Exception: getServiceEntry: does not exist (no such service entry)
participants (1)
-
Joel Reymont