package iocaml-kernel

  1. Overview
  2. Docs
type 'a t
type 'a kind
val pair : [> `Pair ] kind
val pub : [> `Pub ] kind
val sub : [> `Sub ] kind
val req : [> `Req ] kind
val rep : [> `Rep ] kind
val dealer : [> `Dealer ] kind
val router : [> `Router ] kind
val pull : [> `Pull ] kind
val push : [> `Push ] kind
val xsub : [> `Xsub ] kind
val xpub : [> `Xpub ] kind
val create : Context.t -> 'a kind -> 'a t
val close : 'a t -> unit
val bind : 'a t -> string -> unit
val connect : 'a t -> string -> unit
val has_more : 'a t -> bool
val get_fd : 'a t -> Unix.file_descr
val set_linger_period : 'a t -> int -> unit
val set_identity : 'a t -> string -> unit
val subscribe : [> `Sub ] t -> string -> unit
val send : ?block:bool -> ?more:bool -> 'a t -> string -> unit
val send_all : ?block:bool -> 'a t -> string list -> unit
val recv : ?block:bool -> 'a t -> string
val recv_all : ?block:bool -> 'a t -> string list
type event =
  1. | No_event
  2. | Poll_in
  3. | Poll_out
  4. | Poll_in_out
  5. | Poll_error
val events : 'a t -> event
OCaml

Innovation. Community. Security.