Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
handles transmitting RPC messages.Transport
handleTransport :: Handle -> WordCount -> Transport Source #
is a transport which reads and writes
messages from/to handleTransport
handle limithandle
. It uses limit
as the traversal limit when
reading messages and decoding.
socketTransport :: Socket -> WordCount -> Transport Source #
is a transport which reads and writes
messages to/from a socket. It uses socketTransport
socket limitlimit
as the traversal limit when
reading messages and decoing.
tracingTransport :: TraceConfig -> Transport -> Transport Source #
wraps another transport tracingTransport
log transtrans
, loging
messages when they are sent or received (using the log
function). This
can be useful for debugging.
data TraceConfig Source #
TraceConfig | |
|