Module Miou_poll.Flags

The set of flags associated with a file descriptor event.

type t

The actual set.

val pollin : t

POLLIN from poll(2): There is data to read.

val pollpri : t

POLLPRI from poll(2): There is some exceptional condition on the file-descriptor.

val pollout : t

POLLOUT from poll(2): Writing is now possible, though a write larger than the available space in a socket or pipe will still block (unless O_NONBLOCK) is set).

NOTE: Miou_unix sets, by default, socket with O_NONBLOCK.

val pollerr : t

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

val pollhup : t

POLLHUP from poll(2). Device disconnected. Output is now impossible. Might read EOF.

val pollnval : t

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

val empty : t
val (+) : t -> t -> t

The union of flags, fancy way of doing lor.

val mem : t -> t -> bool

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

val to_int : t -> int

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

val of_int : int -> t

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