moonpool/lwt/Lwt_io/Versioned/index.html
2025-09-26 19:08:06 +00:00

15 lines
5.9 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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> &#x00BB; <a href="../../index.html">lwt</a> &#x00BB; <a href="../index.html">Lwt_io</a> &#x00BB; 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">&#45;&gt;</span></span>
<span><span class="optlabel">?buffer_size</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?backlog</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../../ocaml/Unix/index.html#type-sockaddr">Unix.sockaddr</a> <span class="arrow">&#45;&gt;</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">&#45;&gt;</span></span> unit)</span> <span class="arrow">&#45;&gt;</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">&#45;&gt;</span></span>
<span><span class="optlabel">?buffer_size</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?backlog</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?no_close</span>:bool <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../../ocaml/Unix/index.html#type-sockaddr">Unix.sockaddr</a> <span class="arrow">&#45;&gt;</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">&#45;&gt;</span></span> <span>unit <a href="../../Lwt/index.html#type-t">Lwt.t</a></span>)</span> <span class="arrow">&#45;&gt;</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">&#45;&gt;</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">&#45;&gt;</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>