package zmq
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=15d6fa5180fa1a4bbe08d1f5bcad4f85fb6de62ec92c45579825939348f0fafe
sha512=abce48c2337799a5bd879df9894bc12fd2c1d101afbdea9a5bf471b7858bc8c8fab18fa5c7e6b6221b96d0699110b1f63b580ec31cdf93ec5546a9a982503ea1
doc/zmq.deferred/Zmq_deferred/Socket/Make/index.html
Module Socket.Make
Source
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
An concurrent zeromq socket
of_socket s
wraps the zeromq socket s
to_socket s
extracts the raw zeromq socket from s
recv socket
waits for a message on socket
without blocking other concurrent threads
send socket
sends a message on socket
without blocking other concurrent threads
recv_all socket
waits for a multi-part message on socket
without blocking other concurrent threads
send_all socket m
sends all parts of the multi-part message m
on socket
without blocking other concurrent threads
recv_msg socket
waits for a message on socket
without blocking other concurrent threads
send_msg socket
sends a message on socket
without blocking other concurrent threads
recv_msg_all socket
waits for a multi-part message on socket
without blocking other concurrent threads
send_msg_all socket m
sends all parts of the multi-part message m
on socket
without blocking other concurrent threads