package zmq
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9947d13dab4b3c5792cd60f0088a0569597ce5592f0dc8788baa4e9f72a67b56
sha512=0a16f0fde3f2dba1c2676d9792a330ef73cef6809c3f0446a0e4c78623856a2532a9bdce5317472e87490b4dd35082e179074b9160a38924aa72d73cddec8bea
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