| ||||||||
| ||||||||
Description | ||||||||
Version : 0.1 This module provides an interface to start a server listeing on a tcp socket. ( Module is based on simple tcp server found here http:sequence.complete.orgnode258 ) You have to implement 2 functions type ServerAction a = a -> Client a -> [Client a] -> IO [Client a] and type LineConverter a = String -> a to start a server use the doWithServer :: (Show a) => Int -> ServerAction a -> LineConverter a -> String -> IO () function. | ||||||||
Synopsis | ||||||||
| ||||||||
Documentation | ||||||||
| ||||||||
| ||||||||
| ||||||||
type for call back function that is executed within server cycle | ||||||||
| ||||||||
converts the string read by hGetLine to your datatype | ||||||||
| ||||||||
execute a ServerAction wrapped by the tcp server | ||||||||
Produced by Haddock version 2.6.1 |