package capnp-rpc-net

  1. Overview
  2. Docs

Module Capnp_rpc_net.Two_party_networkSource

A network where the is only one other addressable party.

include S.NETWORK with type t = unit
Sourcemodule Types : Capnp_rpc.S.NETWORK_TYPES
Sourcetype t = unit
Sourceval connect : t -> switch:Lwt_switch.t -> secret_key:Auth.Secret_key.t Lazy.t -> Address.t -> (Endpoint.t, [> `Msg of string ]) result Lwt.t

connect t ~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.

Sourceval parse_third_party_cap_id : Capnp_rpc_lwt.Private.Schema.Reader.pointer_t -> Types.third_party_cap_id
OCaml

Innovation. Community. Security.