package async

  1. Overview
  2. Docs
Monadic concurrency library

Install

Dune Dependency

Authors

Maintainers

Sources

async-v0.14.0.tar.gz
sha256=74f2b7b01ce3b92289cc7a68cd3ae53885c763cedd320d27949d585e5c13dc64
md5=9f80cfb72e3defcc9fca50f67e23e93c

doc/async.async_rpc/Async_rpc/Rpc/Transport/index.html

Module Rpc.Transport

module Async_reader = Async_unix.Reader
module Async_writer = Async_unix.Writer
module Reader : sig ... end
module Writer : sig ... end
include module type of struct include Async_rpc_kernel.Rpc.Transport end with module Reader := Async_rpc_kernel.Rpc.Transport.Reader with module Writer := Async_rpc_kernel.Rpc.Transport.Writer

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

val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val close : t -> unit Async_kernel.Deferred.t

Closes both parts of the transport.

val of_reader_writer : max_message_size:int -> Async_reader.t -> Async_writer.t -> t
val of_fd : ?buffer_age_limit:Async_writer.buffer_age_limit -> ?reader_buffer_size:int -> max_message_size:int -> Async_unix.Fd.t -> t
OCaml

Innovation. Community. Security.