| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| Description | |||||||||||||||||||||||||||||
An easy access TCP library. Makes the use of TCP in Haskell much easier. This was originally part of Gray's\/Bringert's HTTP module.
| |||||||||||||||||||||||||||||
| Synopsis | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| Documentation | |||||||||||||||||||||||||||||
| data Connection | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| openTCPPort :: String -> Int -> IO Connection | |||||||||||||||||||||||||||||
| This function establishes a connection to a remote host, it uses getHostByName which interrogates the DNS system, hence may trigger a network connection. | |||||||||||||||||||||||||||||
| isConnectedTo :: Connection -> String -> IO Bool | |||||||||||||||||||||||||||||
| Checks both that the underlying Socket is connected and that the connection peer matches the given host name (which is recorded locally). | |||||||||||||||||||||||||||||
| openTCPConnection :: BufferType ty => String -> Int -> IO (HandleStream ty) | |||||||||||||||||||||||||||||
| isTCPConnectedTo :: HandleStream ty -> String -> IO Bool | |||||||||||||||||||||||||||||
| data HandleStream a | |||||||||||||||||||||||||||||
| class BufferType bufType => HStream bufType where | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| data StreamHooks ty | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| nullHooks :: StreamHooks ty | |||||||||||||||||||||||||||||
| setStreamHooks :: HandleStream ty -> StreamHooks ty -> IO () | |||||||||||||||||||||||||||||
| Produced by Haddock version 2.3.0 | |||||||||||||||||||||||||||||