| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Capnp.Rpc.Transport
Description
This module provides a Transport type, which provides operations
 used to transmit messages between vats in the RPC protocol.
Synopsis
- data Transport = Transport {}
- handleTransport :: Handle -> WordCount -> Transport
- socketTransport :: Socket -> WordCount -> Transport
- tracingTransport :: TraceConfig -> Transport -> Transport
- data TraceConfig = TraceConfig {- log :: String -> IO ()
- showPayloads :: !Bool
 
Documentation
A Transport
handleTransport :: Handle -> WordCount -> Transport Source #
handleTransport handle limithandle. It uses limit as the traversal limit when
 reading messages and decoding.
socketTransport :: Socket -> WordCount -> Transport Source #
socketTransport socket limitlimit as the traversal limit when
 reading messages and decoing.
tracingTransport :: TraceConfig -> Transport -> Transport Source #
tracingTransport log transtrans, loging
 messages when they are sent or received (using the log function). This
 can be useful for debugging.
data TraceConfig Source #
Constructors
| TraceConfig | |
| Fields 
 | |