package luv

  1. Overview
  2. Docs
Binding to libuv: cross-platform asynchronous I/O

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.13.tar.gz
sha256=59a616bce6581bd7ed427dd6a640ff359f2a54eedb5deb5feeb35431756c2252
md5=fa4875137341933d1308e432c652b2cd

doc/luv/Luv/Poll/index.html

Module Luv.PollSource

File descriptor polling.

See uv_poll_t — Poll handle in libuv.

Sourcetype t = [ `Poll ] Handle.t

Binds uv_poll_t.

Note that values of this type can be passed to functions in Luv.Handle, in addition to the functions in this module. In particular, see Luv.Handle.close.

Sourceval init : ?loop:Loop.t -> int -> (t, Error.t) result

Allocates and initializes a polling handle.

Binds uv_poll_init.

Sourceval init_socket : ?loop:Loop.t -> Os_fd.Socket.t -> (t, Error.t) result

Creates a polling handle for an existing socket.

Binds uv_poll_init_socket.

Sourcemodule Event : sig ... end
Sourceval start : t -> Event.t list -> ((Event.t list, Error.t) result -> unit) -> unit

Starts polling the underlying descriptor.

Binds uv_poll_start.

Sourceval stop : t -> (unit, Error.t) result

Stops polling.

Binds uv_poll_stop.

OCaml

Innovation. Community. Security.