package zmq

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

zmq-5.2.1.tbz
sha256=85529f693ad416a101b2fe61141ec9c2c47adf43340ca9ea841d101e9c5c1ca7
sha512=b0c8e1f0ef0466fe4c45ebcb6d5d975931d7cbaac906a440d1123a1557caf8ca4d47c8f6877dd25db96a2b5b136be49b4f345eb1f98c249476cea203ec9297ac

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

Module Socket.MakeSource

This functor is meant to be as compatible as possible with lwt-zmq. It should be straight forward to write a functor over Async_zmq.Socket and Lwt_zmq.Socket.

The functor allows abstraction of the concurrency monad

Parameters

module T : Deferred.T

Signature

Sourcetype 'a t

An concurrent zeromq socket

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

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 to_string_hum : 'a t -> string

Internal statisitcs of the socket

Sourceval recv : 'a t -> string T.Deferred.t

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

Sourceval send : 'a t -> string -> unit T.Deferred.t

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

Sourceval recv_all : 'a t -> string list T.Deferred.t

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

Sourceval send_all : 'a t -> string list -> unit T.Deferred.t

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 T.Deferred.t

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

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

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

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

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 T.Deferred.t

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 T.Deferred.t
Sourcemodule Router : sig ... end
Sourcemodule Monitor : sig ... end
OCaml

Innovation. Community. Security.