package capnp-rpc-unix
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=828002d67b9591d1645266c504e3fabc66b750229244a68b0a846c3c93f73715
sha512=c29f13ada74f3f8c80aa591f0fad60801ea72aea6aaa5299b2edee08e080061c5ac054392678ed8910962b1348f1e61790ce30febfc391ddb8c5ac01d56f3160
doc/capnp-rpc-unix/Capnp_rpc_unix/index.html
Module Capnp_rpc_unix
Source
Helpers for using Capnp_rpc_lwt
on traditional operating systems.
include Capnp_rpc_net.VAT_NETWORK
with type flow = Unix_flow.flow
and module Network = Network
A bi-directional byte-stream.
Configuration for a Vat
.
An on-disk store for saved services.
A cmdliner argument converter for a "capnp://" URI (or the path of a file containing such a URI).
val connect_with_progress :
?mode:[ `Auto | `Log | `Batch | `Console | `Silent ] ->
'a Capnp_rpc_lwt.Sturdy_ref.t ->
('a Capnp_rpc_lwt.Capability.t, Capnp_rpc.Exception.t) Lwt_result.t
connect_with_progress sr
is like Sturdy_ref.connect
, but shows that a connection is in progress. Note: On failure, it does not display the error, which should instead be handled by the caller.
val with_cap_exn :
?progress:[ `Auto | `Log | `Batch | `Console | `Silent ] ->
'a Capnp_rpc_lwt.Sturdy_ref.t ->
('a Capnp_rpc_lwt.Capability.t -> 'b Lwt.t) ->
'b Lwt.t
Like Sturdy_ref.with_cap_exn
, but using connect_with_progress
to show progress.
val serve :
?switch:Lwt_switch.t ->
?tags:Logs.Tag.set ->
?restore:Capnp_rpc_net.Restorer.t ->
Vat_config.t ->
Vat.t Lwt.t
serve ~restore vat_config
is a new vat that is listening for new connections as specified by vat_config
. After connecting to it, clients can get access to services using restore
.
val client_only_vat :
?switch:Lwt_switch.t ->
?tags:Logs.Tag.set ->
?restore:Capnp_rpc_net.Restorer.t ->
unit ->
Vat.t
client_only_vat ()
is a new vat that does not listen for incoming connections.
manpage_capnp_options
is the title of the section of the man-page containing the Cap'n Proto options. This can be used to control where these options appear in the page (e.g. to put them below the other options).