package capnp-rpc-lwt

  1. Overview
  2. Docs
module Address : sig ... end
val connect : switch:Lwt_switch.t -> secret_key:Auth.Secret_key.t Lazy.t -> Address.t -> (Endpoint.t, [> `Msg of string ]) Pervasives.result Lwt.t

connect ~switch ~secret_key address connects to address, proves ownership of secret_key (if TLS is being used), and returns the resulting endpoint. Returns an error if no connection can be established or the target fails to authenticate itself. If switch is turned off, the connection should be terminated.

OCaml

Innovation. Community. Security.