package zmq
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7e39ff4f4930e5c4fcb66235de54a2b8ebdb2d3efbd3f44c6f3b61fd07b8e8ed
sha512=c086989220a831359707e8be04a9fcc5817d3145e5da89bb9210ed3619611ed47b0cedb7d3c2319d6e2fc5ca0f48aa2e46bde72b0bee824594a019c6dcc624c0
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