Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Request = Request InpObj
- newtype Response = Response OutObj
- data Aux = Aux {}
- data Stream
- data ServerIO = ServerIO {
- sioMySockAddr :: SockAddr
- sioPeerSockAddr :: SockAddr
- sioReadRequest :: IO (StreamId, Stream, Request)
- sioWriteResponse :: Stream -> Response -> IO ()
- sioWriteBytes :: ByteString -> IO ()
- runIO :: ServerConfig -> Config -> (ServerIO -> IO (IO ())) -> IO ()
Documentation
Request from client.
Response from server.
Additional information.
Aux | |
|
Low level
ServerIO | |
|
runIO :: ServerConfig -> Config -> (ServerIO -> IO (IO ())) -> IO () Source #
Launching a receiver and a sender without workers.
Any frames can be sent with sioWriteBytes
.