conduit-mirage

A network connection establishment library for MirageOS
Library conduit-mirage
Module type Conduit_mirage . Handler
type t

The type for runtime handlers.

type client

The type for client configuration values.

val sexp_of_client : client -> Sexplib0.Sexp.t
val client_of_sexp : Sexplib0.Sexp.t -> client
type server

The type for server configuration values.

val sexp_of_server : server -> Sexplib0.Sexp.t
val server_of_sexp : Sexplib0.Sexp.t -> server
val connect : t -> client -> Flow.flow Lwt.t

Connect a conduit using client configuration.

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

Listen to a conduit using a server configuration.