Documentation
ipAddress :: (Word8, Word8, Word8, Word8) -> HostAddressSource
make an IP Address: (127,0,0,1) is the localhost
the specification of a serving process
serveNoBlock :: Server -> IO (ThreadId, MVar ())Source
Start one server acception connections and return immediatly. You can wait for the server thread by reading the MVar
multiServeNoBlock :: [Server] -> IO [(ThreadId, MVar ())]Source
Start a list of servers and return immediatly.
type ServerRoutine = (Handle, HostName, PortNumber) -> IO ()Source
the functionality of a server
multiServe :: [Server] -> IO ()Source
Start a list of servers and wait for all server threads