package lablgtk3

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

IO Channels @gtkdoc glib glib-IO-Channels

Io condition, called from the main loop

type channel
type condition = [
  1. | `ERR
  2. | `HUP
  3. | `IN
  4. | `NVAL
  5. | `OUT
  6. | `PRI
]
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
OCaml

Innovation. Community. Security.