package async_rpc_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

RPC transport layer

A transport is a way to send and receive messages. It is split between a Reader and a Writer part.

Async_rpc_kernel only provides an async Pipe.t transport. Async_extra provides a unix transport based on Async_unix's Reader and Writer modules.

module Header : sig ... end

Binary headers containing message lengths. All transports should use this to ensure binary compatibility.

module Handler_result = Transport_intf.Handler_result
module Reader : sig ... end
module Send_result = Transport_intf.Send_result
module Writer : sig ... end
type t = {
  1. reader : Reader.t;
  2. writer : Writer.t;
}
include sig ... end
val sexp_of_t : t -> Sexplib.Sexp.t
val close : t -> unit Async_kernel.Deferred.t

Closes both parts of the transport.

OCaml

Innovation. Community. Security.