[Haskell-cafe] Re: "getServiceEntry: does not exist" on Windows
Joel Reymont
joelr1 at gmail.com
Wed Oct 19 11:51:34 EDT 2005
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
>>
--
http://wagerlabs.com/
More information about the Haskell-Cafe
mailing list