package mirage-conduit

  1. Overview
  2. Docs

The signature for Conduit implementations.

type t = conduit
val empty : t

The empty conduit.

module With_tcp (S : Mirage_stack_lwt.V4) : sig ... end
val with_tcp : t -> 'a stackv4 -> 'a -> t Lwt.t

Extend a conduit with an implementation for TCP.

val with_tls : t -> t Lwt.t

Extend a conduit with an implementation for TLS.

val with_vchan : t -> xs -> vchan -> string -> t Lwt.t

Extend a conduit with an implementation for VCHAN.

val connect : t -> client -> Flow.flow Lwt.t

Connect a conduit using a client configuration value.

val listen : t -> server -> callback -> unit Lwt.t

Configure a server using a conduit configuration value.

OCaml

Innovation. Community. Security.