capnp-0.17.0.0: Cap'n Proto for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Capnp.Rpc.Transport

Description

This module provides a Transport type, which provides operations used to transmit messages between vats in the RPC protocol.

Synopsis

Documentation

data Transport Source #

A Transport handles transmitting RPC messages.

Constructors

Transport 

Fields

handleTransport :: Handle -> WordCount -> Transport Source #

handleTransport handle limit is a transport which reads and writes messages from/to handle. It uses limit as the traversal limit when reading messages and decoding.

socketTransport :: Socket -> WordCount -> Transport Source #

socketTransport socket limit is a transport which reads and writes messages to/from a socket. It uses limit as the traversal limit when reading messages and decoing.

tracingTransport :: TraceConfig -> Transport -> Transport Source #

tracingTransport log trans wraps another transport trans, loging messages when they are sent or received (using the log function). This can be useful for debugging.

data TraceConfig Source #

Constructors

TraceConfig 

Fields