Source file capnp_rpc_net.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
open Capnp_rpc_lwt

module S = S

module Endpoint = Endpoint
module Restorer = Restorer

module type VAT_NETWORK = S.VAT_NETWORK with
  type 'a capability := 'a Capability.t and
  type restorer := Restorer.t and
  type service_id := Restorer.Id.t and
  type 'a sturdy_ref := 'a Sturdy_ref.t

module Networking (N : S.NETWORK) (F : Mirage_flow.S) = struct
  type flow = F.flow

  module Network = N
  module Vat = Vat.Make (N) (F)
  module CapTP = Vat.CapTP
end

module Capnp_address = Capnp_address
module Persistence = Persistence
module Two_party_network = Two_party_network
module Auth = Auth
module Tls_wrapper = Tls_wrapper