package iomux

  1. Overview
  2. Docs

Module Poll.FlagsSource

The set of flags associated with a file descriptor event.

Sourcetype t

The actual set.

Sourceval pollin : t

POLLIN from poll(2).

Sourceval pollpri : t

POLLPRI from poll(2).

Sourceval pollout : t

POLLOUT from poll(2).

Sourceval pollerr : t

POLLERR from poll(2). Only expected as output, invalid as input.

Sourceval pollhup : t

POLLHUP from poll(2). Only expected as output, invalid as input.

Sourceval pollnval : t

POLLNVAL from poll(2). Only expected as output, invalid as input.

Sourceval empty : t

aka zero.

Sourceval (+) : t -> t -> t

The union of flags, fancy way of doing lor.

Sourceval mem : t -> t -> bool

mem x y checks if y belongs to m. The fancy way of doing land.

Sourceval to_int : t -> int

to_int x exposes x as an integer, this is an identity function.

Sourceval of_int : int -> t

of_int x imports x as t, this is an identity function.

OCaml

Innovation. Community. Security.