Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
ProjectM36.Server
Synopsis
- type TestMode = Bool
- requestHandlers :: TestMode -> Maybe Timeout -> RequestHandlers ServerState
- getConn :: ConnectionState ServerState -> IO Connection
- testModeHandlers :: Maybe Timeout -> RequestHandlers ServerState
- loggingNotificationCallback :: NotificationCallback
- checkFSType :: Bool -> PersistenceStrategy -> IO Bool
- checkFSErrorMsg :: String
- type SocketString = String
- data ServerState = ServerState {}
- addClientLogin :: DatabaseName -> ConnectionState ServerState -> IO ()
- connectionForClient :: Socket -> ServerState -> IO (Maybe Connection)
- initialServerState :: DatabaseName -> Connection -> IO ServerState
- launchServer :: ServerConfig -> Maybe (MVar SockAddr) -> IO Bool
Documentation
loggingNotificationCallback :: NotificationCallback Source #
A notification callback which logs the notification to stderr and does nothing else.
checkFSType :: Bool -> PersistenceStrategy -> IO Bool Source #
type SocketString = String Source #
data ServerState Source #
Constructors
ServerState | |
Fields |
addClientLogin :: DatabaseName -> ConnectionState ServerState -> IO () Source #
connectionForClient :: Socket -> ServerState -> IO (Maybe Connection) Source #
initialServerState :: DatabaseName -> Connection -> IO ServerState Source #
launchServer :: ServerConfig -> Maybe (MVar SockAddr) -> IO Bool Source #
A synchronous function to start the project-m36 daemon given an appropriate ServerConfig
. Note that this function only returns if the server exits. Returns False if the daemon exited due to an error. If the second argument is not Nothing, the port is put after the server is ready to service the port.