package miou

  1. Overview
  2. Docs
Composable concurrency primitives for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

miou-0.5.1.tbz
sha256=129339f4a60fc9579ee118d693056caf00be3b68c7a52ea974b91b1f25e4dd63
sha512=5603847cce524c04e9a5dca268fc1050fbf2e4019b0e7fa24ee3d4941c4dce38e17f49b39c7f812634d1ab9b4d0cb02c5103c8c0c644c174df48074763801ffd

doc/miou.unix/Miou_poll/Flags/index.html

Module Miou_poll.FlagsSource

The set of flags associated with a file descriptor event.

Sourcetype t

The actual set.

Sourceval pollin : t

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

Sourceval pollpri : t

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

Sourceval 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.

Sourceval pollerr : t

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

Sourceval pollhup : t

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

Sourceval pollnval : t

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

Sourceval empty : t
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.