Module Conduit_mirage.TCP

The signature for conduits

Parameters

module S : Tcpip.Stack.V4V6

Signature

type flow = S.TCP.flow

The type for networking flows.

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.