Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a Transport
type, which provides operations
used to transmit messages between vats in the RPC protocol.
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 :: (String -> IO ()) -> 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.