Safe Haskell | None |
---|---|
Language | Haskell98 |
- data ServerCommand
- data ServerOpts = ServerOpts {}
- data ClientOpts = ClientOpts {
- clientPort :: Int
- clientPretty :: Bool
- clientStdin :: Bool
- clientTimeout :: Int
- clientSilent :: Bool
- data Request = Request {}
- sendCommand :: ClientOpts -> Bool -> Command -> (Notification -> IO a) -> IO Result
- runServerCommand :: ServerCommand -> IO ()
- findPath :: MonadIO m => CommandOptions -> FilePath -> m FilePath
- processRequest :: CommandOptions -> (Notification -> IO ()) -> Command -> IO Result
- processClient :: String -> IO ByteString -> (ByteString -> IO ()) -> CommandOptions -> IO ()
- processClientSocket :: Socket -> CommandOptions -> IO ()
- module HsDev.Server.Types
Documentation
data ServerCommand Source
Server control command
data ServerOpts Source
Server options
ServerOpts | |
|
data ClientOpts Source
Client options
ClientOpts | |
|
sendCommand :: ClientOpts -> Bool -> Command -> (Notification -> IO a) -> IO Result Source
runServerCommand :: ServerCommand -> IO () Source
processRequest :: CommandOptions -> (Notification -> IO ()) -> Command -> IO Result Source
Process request, notifications can be sent during processing
processClient :: String -> IO ByteString -> (ByteString -> IO ()) -> CommandOptions -> IO () Source
Process client, listen for requests and process them
processClientSocket :: Socket -> CommandOptions -> IO () Source
Process client by socket
module HsDev.Server.Types