Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- module Thrift.Transport
- data FramedTransport t
- openFramedTransport :: Transport t => t -> IO (FramedTransport t)
Documentation
module Thrift.Transport
data FramedTransport t Source #
FramedTransport wraps a given transport in framed mode.
Instances
Transport t => Transport (FramedTransport t) Source # | |
Defined in Thrift.Transport.Framed tIsOpen :: FramedTransport t -> IO Bool Source # tClose :: FramedTransport t -> IO () Source # tRead :: FramedTransport t -> Int -> IO ByteString Source # tPeek :: FramedTransport t -> IO (Maybe Word8) Source # tWrite :: FramedTransport t -> ByteString -> IO () Source # tFlush :: FramedTransport t -> IO () Source # tReadAll :: FramedTransport t -> Int -> IO ByteString Source # |
openFramedTransport :: Transport t => t -> IO (FramedTransport t) Source #
Create a new framed transport which wraps the given transport.