package zmq
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=04e6278336a8bd3d24215912b8de129673675a5fd84acaa969a30b8c93aba05f
sha512=26ecf349651a1ff67df6c5e39d7f9bc27831da2dcbbad660c7293dd0e2e8cbeaf0b5bc8d9b1842db55e1d237581d42136f1e817b1fb018ad3d65840e356f59e1
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