mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-11-02 16:33:35 +00:00
10 lines
3.3 KiB
HTML
10 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>N (capnp-rpc-net.Capnp_rpc_net.Networking.N)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.4"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../../index.html">capnp-rpc-net</a> » <a href="../../index.html">Capnp_rpc_net</a> » <a href="../index.html">Networking</a> » N</nav><header class="odoc-preamble"><h1>Parameter <code><span>Networking.N</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Types"><a href="#module-Types" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Types/index.html">Types</a></span><span> : <a href="../../../../capnp-rpc/Capnp_rpc_proto/S/module-type-NETWORK_TYPES/index.html">Capnp_rpc_proto.S.NETWORK_TYPES</a></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Address"><a href="#module-Address" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Address/index.html">Address</a></span><span> : <a href="../../S/module-type-ADDRESS/index.html">S.ADDRESS</a></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-connect"><a href="#val-connect" class="anchor"></a><code><span><span class="keyword">val</span> connect :
|
||
<span><a href="#type-t">t</a> <span class="arrow">-></span></span>
|
||
<span><span class="label">sw</span>:<span class="xref-unresolved">Eio</span>.Switch.t <span class="arrow">-></span></span>
|
||
<span><span class="label">secret_key</span>:<span><a href="../../Auth/Secret_key/index.html#type-t">Auth.Secret_key.t</a> <span class="xref-unresolved">Stdlib</span>.Lazy.t</span> <span class="arrow">-></span></span>
|
||
<span><a href="Address/index.html#type-t">Address.t</a> <span class="arrow">-></span></span>
|
||
<span><span>(<a href="../../Endpoint/index.html#type-t">Endpoint.t</a>, <span>[> <span>`Msg of string</span> ]</span>)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div><div class="spec-doc"><p><code>connect t ~sw ~secret_key address</code> connects to <code>address</code>, proves ownership of <code>secret_key</code> (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.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-parse_third_party_cap_id"><a href="#val-parse_third_party_cap_id" class="anchor"></a><code><span><span class="keyword">val</span> parse_third_party_cap_id :
|
||
<span><span class="xref-unresolved">Capnp_rpc</span>.Private.Schema.Reader.pointer_t <span class="arrow">-></span></span>
|
||
<a href="Types/index.html#type-third_party_cap_id">Types.third_party_cap_id</a></span></code></div></div></div></body></html>
|