package conduit-mirage

  1. Overview
  2. Docs

Module type Conduit_mirage.SSource

The signature for Conduit implementations.

Sourcetype t = conduit
Sourceval empty : t

The empty conduit.

Sourcemodule With_tcp (S : Mirage_stack.V4) : sig ... end
Sourceval with_tcp : t -> 'a stackv4 -> 'a -> t Lwt.t

Extend a conduit with an implementation for TCP.

Sourceval with_tls : t -> t Lwt.t

Extend a conduit with an implementation for TLS.

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

Extend a conduit with an implementation for VCHAN.

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

Connect a conduit using a client configuration value.

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

Configure a server using a conduit configuration value.