mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
15 lines
5.9 KiB
HTML
15 lines
5.9 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Versioned (lwt.Lwt_io.Versioned)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../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">Index</a> » <a href="../../index.html">lwt</a> » <a href="../index.html">Lwt_io</a> » Versioned</nav><header class="odoc-preamble"><h1>Module <code><span>Lwt_io.Versioned</span></code></h1><p>Versioned variants of APIs undergoing breaking changes.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-establish_server_1"><a href="#val-establish_server_1" class="anchor"></a><code><span><span class="keyword">val</span> establish_server_1 :
|
||
<span><span class="optlabel">?fd</span>:<a href="../../Lwt_unix/index.html#type-file_descr">Lwt_unix.file_descr</a> <span class="arrow">-></span></span>
|
||
<span><span class="optlabel">?buffer_size</span>:int <span class="arrow">-></span></span>
|
||
<span><span class="optlabel">?backlog</span>:int <span class="arrow">-></span></span>
|
||
<span><a href="../../../ocaml/Unix/index.html#type-sockaddr">Unix.sockaddr</a> <span class="arrow">-></span></span>
|
||
<span><span>(<span><span>(<a href="../index.html#type-input_channel">input_channel</a> * <a href="../index.html#type-output_channel">output_channel</a>)</span> <span class="arrow">-></span></span> unit)</span> <span class="arrow">-></span></span>
|
||
<a href="../index.html#type-server">server</a></span></code></div><div class="spec-doc"><p>Old version of <a href="../index.html#val-establish_server"><code>Lwt_io.establish_server</code></a>. The current <a href="../index.html#val-establish_server"><code>Lwt_io.establish_server</code></a> automatically closes channels passed to the callback, and notifies the caller when the server's listening socket is bound.</p><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> <p>Use <a href="../index.html#val-establish_server_with_client_address"><code>Lwt_io.establish_server_with_client_address</code></a>.</p></li></ul><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 2.7.0</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-establish_server_2"><a href="#val-establish_server_2" class="anchor"></a><code><span><span class="keyword">val</span> establish_server_2 :
|
||
<span><span class="optlabel">?fd</span>:<a href="../../Lwt_unix/index.html#type-file_descr">Lwt_unix.file_descr</a> <span class="arrow">-></span></span>
|
||
<span><span class="optlabel">?buffer_size</span>:int <span class="arrow">-></span></span>
|
||
<span><span class="optlabel">?backlog</span>:int <span class="arrow">-></span></span>
|
||
<span><span class="optlabel">?no_close</span>:bool <span class="arrow">-></span></span>
|
||
<span><a href="../../../ocaml/Unix/index.html#type-sockaddr">Unix.sockaddr</a> <span class="arrow">-></span></span>
|
||
<span><span>(<span><span>(<a href="../index.html#type-input_channel">input_channel</a> * <a href="../index.html#type-output_channel">output_channel</a>)</span> <span class="arrow">-></span></span> <span>unit <a href="../../Lwt/index.html#type-t">Lwt.t</a></span>)</span> <span class="arrow">-></span></span>
|
||
<span><a href="../index.html#type-server">server</a> <a href="../../Lwt/index.html#type-t">Lwt.t</a></span></span></code></div><div class="spec-doc"><p>Since Lwt 3.0.0, this is just an alias for <a href="../index.html#val-establish_server"><code>Lwt_io.establish_server</code></a>.</p><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> <p>Use <a href="../index.html#val-establish_server_with_client_address"><code>Lwt_io.establish_server_with_client_address</code></a>.</p></li></ul><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 2.7.0</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-shutdown_server_1"><a href="#val-shutdown_server_1" class="anchor"></a><code><span><span class="keyword">val</span> shutdown_server_1 : <span><a href="../index.html#type-server">server</a> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p>Old version of <a href="../index.html#val-shutdown_server"><code>Lwt_io.shutdown_server</code></a>. The current <a href="../index.html#val-shutdown_server"><code>Lwt_io.shutdown_server</code></a> returns a promise, which resolves when the server's listening socket is closed.</p><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> <p>Use <a href="../index.html#val-shutdown_server"><code>Lwt_io.shutdown_server</code></a>.</p></li></ul><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 2.7.0</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-shutdown_server_2"><a href="#val-shutdown_server_2" class="anchor"></a><code><span><span class="keyword">val</span> shutdown_server_2 : <span><a href="../index.html#type-server">server</a> <span class="arrow">-></span></span> <span>unit <a href="../../Lwt/index.html#type-t">Lwt.t</a></span></span></code></div><div class="spec-doc"><p>Since Lwt 3.0.0, this is just an alias for <a href="../index.html#val-shutdown_server"><code>Lwt_io.shutdown_server</code></a>.</p><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> <p>Use <a href="../index.html#val-shutdown_server"><code>Lwt_io.shutdown_server</code></a>.</p></li></ul><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 2.7.0</li></ul></div></div></div></body></html>
|