<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <link rel="Start" href="index.html"> <link rel="previous" href="Glib.Idle.html"> <link rel="next" href="Glib.Message.html"> <link rel="Up" href="Glib.html"> <title>LablGTK : Glib.Io</title> </head> <body> <div class="navbar"><a href="Glib.Idle.html">Previous</a> <a href="Glib.html">Up</a> <a href="Glib.Message.html">Next</a> </div> <center><h1>Module <a href="type_Glib.Io.html">Glib.Io</a></h1></center> <br> <pre><span class="keyword">module</span> Io: <code class="code">sig</code> <a href="Glib.Io.html">..</a> <code class="code">end</code></pre>IO Channels<br> <small>GTK documentation: <a href="file:///usr/share/gtk-doc/html/glib/glib-IO-Channels.html">glib-IO-Channels</a></small><hr width="100%"> <br> Io condition, called from the main loop<br> <pre><span class="keyword">type</span> <a name="TYPEchannel"></a><code class="type"></code>channel </pre> <pre><span class="keyword">type</span> <a name="TYPEcondition"></a><code class="type"></code>condition = <code class="type">[ `ERR | `HUP | `IN | `NVAL | `OUT | `PRI ]</code> </pre> <pre><span class="keyword">type</span> <a name="TYPEid"></a><code class="type"></code>id </pre> <pre><span class="keyword">val</span> <a name="VALchannel_of_descr"></a>channel_of_descr : <code class="type">Unix.file_descr -> <a href="Glib.Io.html#TYPEchannel">channel</a></code></pre><pre><span class="keyword">val</span> <a name="VALadd_watch"></a>add_watch : <code class="type">cond:<a href="Glib.Io.html#TYPEcondition">condition</a> list -><br> callback:(<a href="Glib.Io.html#TYPEcondition">condition</a> list -> bool) -><br> ?prio:int -> <a href="Glib.Io.html#TYPEchannel">channel</a> -> <a href="Glib.Io.html#TYPEid">id</a></code></pre><pre><span class="keyword">val</span> <a name="VALremove"></a>remove : <code class="type"><a href="Glib.Io.html#TYPEid">id</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALread"></a>read : <code class="type"><a href="Glib.Io.html#TYPEchannel">channel</a> -> buf:string -> pos:int -> len:int -> int</code></pre><pre><span class="keyword">val</span> <a name="VALread_chars"></a>read_chars : <code class="type"><a href="Glib.Io.html#TYPEchannel">channel</a> -> buf:string -> pos:int -> len:int -> int</code></pre></body></html>