nanoev/nanoev-picos/Nanoev_picos/Base/index.html
2025-05-05 14:16:16 +00:00

2 lines
6.6 KiB
HTML
Raw Permalink 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>Base (nanoev-picos.Nanoev_picos.Base)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.0.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">nanoev-picos</a> &#x00BB; <a href="../index.html">Nanoev_picos</a> &#x00BB; Base</nav><header class="odoc-preamble"><h1>Module <code><span>Nanoev_picos.Base</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-read"><a href="#val-read" class="anchor"></a><code><span><span class="keyword">val</span> read : <span><a href="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> <span class="arrow">&#45;&gt;</span></span> <span>bytes <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> int</span></code></div><div class="spec-doc"><p>Read from the non blocking FD.</p><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../nanoev/Nanoev/index.html#exception-Closed"><code>Nanoev.Closed</code></a> <p>if the FD is closed</p></li></ul><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../ocaml/Unix/index.html#exception-Unix_error"><code>Unix.Unix_error</code></a> <p>for other errors</p></li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-write_once"><a href="#val-write_once" class="anchor"></a><code><span><span class="keyword">val</span> write_once : <span><a href="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> <span class="arrow">&#45;&gt;</span></span> <span>bytes <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> int</span></code></div><div class="spec-doc"><p>Write into the non blocking FD.</p><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../nanoev/Nanoev/index.html#exception-Closed"><code>Nanoev.Closed</code></a> <p>if the FD is closed</p></li></ul><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../ocaml/Unix/index.html#exception-Unix_error"><code>Unix.Unix_error</code></a> <p>for other errors</p></li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-write"><a href="#val-write" class="anchor"></a><code><span><span class="keyword">val</span> write : <span><a href="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> <span class="arrow">&#45;&gt;</span></span> <span>bytes <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> <span>int <span class="arrow">&#45;&gt;</span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-close"><a href="#val-close" class="anchor"></a><code><span><span class="keyword">val</span> close : <span><a href="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p>Close the file descriptor</p><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../ocaml/Unix/index.html#exception-Unix_error"><code>Unix.Unix_error</code></a> <p>when it fails</p></li></ul></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="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> <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> unit</span></code></div><div class="spec-doc"><p>Connect this FD to the remote address.</p><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../nanoev/Nanoev/index.html#exception-Closed"><code>Nanoev.Closed</code></a> <p>if the FD is closed.</p></li></ul><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../ocaml/Unix/index.html#exception-Unix_error"><code>Unix.Unix_error</code></a> <p>for other errors</p></li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-accept"><a href="#val-accept" class="anchor"></a><code><span><span class="keyword">val</span> accept : <span><a href="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> <span class="arrow">&#45;&gt;</span></span> <a href="../../../ocaml/Unix/index.html#type-file_descr">Unix.file_descr</a> * <a href="../../../ocaml/Unix/index.html#type-sockaddr">Unix.sockaddr</a></span></code></div><div class="spec-doc"><p>Accept a connection on this fd.</p><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../nanoev/Nanoev/index.html#exception-Closed"><code>Nanoev.Closed</code></a> <p>if the FD is closed.</p></li></ul><ul class="at-tags"><li class="raises"><span class="at-tag">raises</span> <a href="../../../ocaml/Unix/index.html#exception-Unix_error"><code>Unix.Unix_error</code></a> <p>for other errors</p></li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-max_fds"><a href="#val-max_fds" class="anchor"></a><code><span><span class="keyword">val</span> max_fds : <span>unit <span class="arrow">&#45;&gt;</span></span> int</span></code></div><div class="spec-doc"><p>Maximum number of file descriptors one can await on. See <a href="../../../nanoev/Nanoev/index.html#val-max_fds"><code>Nanoev.max_fds</code></a></p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-sleep"><a href="#val-sleep" class="anchor"></a><code><span><span class="keyword">val</span> sleep : <span>float <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p>Suspend current fiber for <code>n</code> seconds</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Raw"><a href="#module-Raw" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Raw/index.html">Raw</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>