Safe Haskell | None |
---|
- connectionReadLine :: Connection -> IO ByteString
- connectionReadLineWith :: Connection -> ByteString -> IO ByteString
- charLF :: Word8
- charPeriod :: Word8
- charColon :: Word8
- charSpace :: Word8
- charCR :: Word8
- killCR :: ByteString -> ByteString
- dummyConnection :: [ByteString] -> IO (Connection, IO [ByteString], IO [ByteString])
- makeConnection :: IO ByteString -> (ByteString -> IO ()) -> IO () -> IO Connection
- socketConnection :: Socket -> IO Connection
- openSocketConnection :: Maybe HostAddress -> String -> Int -> IO Connection
- firstSuccessful :: [AddrInfo] -> (AddrInfo -> IO a) -> IO a
Documentation
killCR :: ByteString -> ByteStringSource
:: [ByteString] | input |
-> IO (Connection, IO [ByteString], IO [ByteString]) | conn, output, input |
For testing
:: IO ByteString | read |
-> (ByteString -> IO ()) | write |
-> IO () | close |
-> IO Connection |
socketConnection :: Socket -> IO ConnectionSource
:: Maybe HostAddress | |
-> String | host |
-> Int | port |
-> IO Connection |
firstSuccessful :: [AddrInfo] -> (AddrInfo -> IO a) -> IO aSource