thrift-0.12.0: Haskell bindings for the Apache Thrift RPC system

Safe HaskellNone
LanguageHaskell2010

Thrift.Server

Synopsis

Documentation

runBasicServer :: h -> (h -> (BinaryProtocol Handle, BinaryProtocol Handle) -> IO Bool) -> PortNumber -> IO a Source #

A basic threaded binary protocol socket server.

runThreadedServer :: (Protocol i, Protocol o) => (Socket -> IO (i, o)) -> h -> (h -> (i, o) -> IO Bool) -> PortID -> IO a Source #

A threaded sever that is capable of using any Transport or Protocol instances.