package zmq

  1. Overview
  2. Docs

Module Zmq.PollSource

Sourcetype t
Sourcetype poll_event =
  1. | In
  2. | Out
  3. | In_out
Sourcetype 'a poll_mask = 'a Socket.t * poll_event
Sourceval mask_in_out : [< `Pair | `Pub | `Sub | `Req | `Rep | `Dealer | `Router | `Pull | `Push | `Xsub | `Xpub | `Stream ] Socket.t -> [ `Pair | `Pub | `Sub | `Req | `Rep | `Dealer | `Router | `Pull | `Push | `Xsub | `Xpub | `Stream ] poll_mask
  • since 5.1.4
Sourceval mask_in : [< `Pair | `Pub | `Sub | `Req | `Rep | `Dealer | `Router | `Pull | `Push | `Xsub | `Xpub | `Stream ] Socket.t -> [ `Pair | `Pub | `Sub | `Req | `Rep | `Dealer | `Router | `Pull | `Push | `Xsub | `Xpub | `Stream ] poll_mask
  • since 5.1.4
Sourceval mask_out : [< `Pair | `Pub | `Sub | `Req | `Rep | `Dealer | `Router | `Pull | `Push | `Xsub | `Xpub | `Stream ] Socket.t -> [ `Pair | `Pub | `Sub | `Req | `Rep | `Dealer | `Router | `Pull | `Push | `Xsub | `Xpub | `Stream ] poll_mask
  • since 5.1.4
Sourceval mask_of : 'a poll_mask array -> t

This function will be deprecated in a future release. Consider using the synonym function of_masks instead.

Sourceval of_masks : 'a poll_mask array -> t
Sourceval poll : ?timeout:int -> t -> poll_event option array
OCaml

Innovation. Community. Security.