
19 Oct
2005
19 Oct
'05
3:51 p.m.
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