---
name: "Glib.Io"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Glib.Io"
---

# Glib.Io(3o)

IO Channels

## NAME

Glib.Io - IO Channels

## Module

Module   Glib.Io

## Documentation

Module **Io**\
  :  **sig end**

IO Channels

**=== Io condition, called from the main loop ===**

*type channel*

*type condition* =  **\[ \`ERR \| \`HUP \| \`IN \| \`NVAL \| \`OUT \| \`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:string -\> pos:int -\> len:int -\> int**
