Module Conduit_mirage.TLS

Parameters

module S : S

Signature

type flow =
  1. | TLS of Tls_mirage.Make(S.Flow).flow
  2. | Clear of S.flow
include S with type t = S.t and type flow := flow
type t = S.t

The type for handlers.

module Flow : Mirage_flow.S with type flow = flow

The type for flows.

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

Connect a conduit using client configuration.

val listen : t -> server -> (flow -> unit Lwt.t) -> unit Lwt.t

Listen to a conduit using a server configuration.