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

Safe HaskellNone
LanguageHaskell98

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 :: (Transport t, Protocol i, Protocol o) => (Socket -> IO (i t, o t)) -> h -> (h -> (i t, o t) -> IO Bool) -> PortID -> IO a Source

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