package lablgtk3

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type channel = Glib.Io.channel
type condition = [
  1. | `IN
  2. | `OUT
  3. | `PRI
  4. | `ERR
  5. | `HUP
  6. | `NVAL
]
type id
val channel_of_descr : Unix.file_descr -> channel
val add_watch : cond:condition list -> callback:(condition list -> bool) -> ?prio:int -> channel -> id
val remove : id -> unit
val read : channel -> buf:bytes -> pos:int -> len:int -> int
val read_chars : channel -> buf:bytes -> pos:int -> len:int -> int