package zmq

  1. Overview
  2. Docs
type t
type poll_event =
  1. | In
  2. | Out
  3. | In_out
type 'a poll_mask = 'a Socket.t * poll_event
val 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 ] Socket.t * poll_event
  • since 5.1.4
val 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 ] Socket.t * poll_event
  • since 5.1.4
val 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 ] Socket.t * poll_event
  • since 5.1.4
val mask_of : 'a poll_mask array -> t
val poll : ?timeout:int -> t -> poll_event option array
OCaml

Innovation. Community. Security.