package zmq

  1. Overview
  2. Docs
OCaml bindings for ZeroMQ 4.x

Install

dune-project
 Dependency

Authors

Maintainers

Sources

zmq-6.0.0.tbz
sha256=bee1f735172a0d62f9a17901389d3300f0d756df9d0267ecda30242e190da4e2
sha512=ae6cfa7a7071d3cdd52620ca70436b26ad8ea670a175598beab72fcb4860c48f0cd204bf10e22ab8bdcf368a4d32a1e92edf81559fd91fb1afbeac3eb27afbbe

doc/zmq.deferred/Zmq_deferred/Socket/Make/index.html

Module Socket.MakeSource

Parameters

module T : Deferred.T

Signature

Sourcetype 'a deferred = 'a T.t
Sourcetype 'a t

An concurrent zeromq socket

Sourcetype 'a of_socket_args = 'a
Sourceval of_socket : ('a Zmq.Socket.t -> 'a t) of_socket_args

of_socket s wraps the zeromq socket s

Sourceval to_socket : 'a t -> 'a Zmq.Socket.t

to_socket s extracts the raw zeromq socket from s

Sourceval recv : 'a t -> string deferred

recv socket waits for a message on socket without blocking other concurrent threads

Sourceval send : 'a t -> string -> unit deferred

send socket sends a message on socket without blocking other concurrent threads

Sourceval recv_all : 'a t -> string list deferred

recv_all socket waits for a multi-part message on socket without blocking other concurrent threads

Sourceval send_all : 'a t -> string list -> unit deferred

send_all socket m sends all parts of the multi-part message m on socket without blocking other concurrent threads

Sourceval recv_msg : 'a t -> Zmq.Msg.t deferred

recv_msg socket waits for a message on socket without blocking other concurrent threads

Sourceval send_msg : 'a t -> Zmq.Msg.t -> unit deferred

send_msg socket sends a message on socket without blocking other concurrent threads

Sourceval recv_msg_all : 'a t -> Zmq.Msg.t list deferred

recv_msg_all socket waits for a multi-part message on socket without blocking other concurrent threads

Sourceval send_msg_all : 'a t -> Zmq.Msg.t list -> unit deferred

send_msg_all socket m sends all parts of the multi-part message m on socket without blocking other concurrent threads

Sourceval close : 'a t -> unit deferred
Sourcemodule Router : sig ... end
Sourcemodule Monitor : sig ... end