Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Network.RELP.Server
Contents
Description
RELP (Reliable Event Logging Protocol) simple server
Synopsis
- data RelpFlow s => RelpServerParams s = RelpServerParams {
- relpServerReport :: !(s -> SockAddr -> String -> String -> IO ())
- relpServerAccept :: !(s -> SockAddr -> RelpOffers -> IO Bool)
- relpServerNotify :: !(s -> SockAddr -> ByteString -> IO Bool)
- relpServerReduce :: !(s -> SockAddr -> IO ())
- relpServerFinish :: !(s -> SockAddr -> IO ())
- runRelpServer :: PortNumber -> RelpServerParams Socket -> IO ()
- runRelpTLSServer :: ServerParams -> HostPreference -> String -> RelpServerParams Context -> IO ()
- runRelpTLSServer' :: FilePath -> FilePath -> FilePath -> (ServerParams -> ServerParams) -> ServiceName -> RelpServerParams Context -> IO ()
- class RelpFlow a where
- relpFlowRecv :: a -> IO ByteString
- relpFlowSend :: a -> ByteString -> IO ()
- relpFlowClose :: a -> IO ()
- buildRelpServerHandle :: RelpFlow s => RelpServerParams s -> s -> SockAddr -> IO ()
Running a standalone RELP server
data RelpFlow s => RelpServerParams s Source #
Relp server options
Constructors
RelpServerParams | |
Fields
|
Instances
RelpFlow s => Default (RelpServerParams s) Source # | Relp server options stub |
Defined in Network.RELP.Server Methods def :: RelpServerParams s # |
runRelpServer :: PortNumber -> RelpServerParams Socket -> IO () Source #
Provides a simple RELP server.
runRelpTLSServer :: ServerParams -> HostPreference -> String -> RelpServerParams Context -> IO () Source #
Provides a TLS RELP server
runRelpTLSServer' :: FilePath -> FilePath -> FilePath -> (ServerParams -> ServerParams) -> ServiceName -> RelpServerParams Context -> IO () Source #
Provides a simple TLS RELP server.
class RelpFlow a where Source #
Methods
relpFlowRecv :: a -> IO ByteString Source #
relpFlowSend :: a -> ByteString -> IO () Source #
relpFlowClose :: a -> IO () Source #
Instances
RelpFlow Socket Source # | |
Defined in Network.RELP.Server Methods relpFlowRecv :: Socket -> IO ByteString Source # relpFlowSend :: Socket -> ByteString -> IO () Source # relpFlowClose :: Socket -> IO () Source # | |
RelpFlow Context Source # | |
Defined in Network.RELP.Server Methods relpFlowRecv :: Context -> IO ByteString Source # relpFlowSend :: Context -> ByteString -> IO () Source # relpFlowClose :: Context -> IO () Source # |
buildRelpServerHandle Source #
Arguments
:: RelpFlow s | |
=> RelpServerParams s | Server options |
-> s | Some server socket |
-> SockAddr | Client address |
-> IO () | Never returns |
Build relp messages handler.