Module Zmq_deferred__Socket.Make
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
Signature
val of_socket : 'a Zmq.Socket.t -> 'a tof_socket swraps the zeromq sockets
val to_socket : 'a t -> 'a Zmq.Socket.tto_socket sextracts the raw zeromq socket froms
val to_string_hum : 'a t -> stringInternal statisitcs of the socket
val recv : 'a t -> string T.Deferred.trecv socketwaits for a message onsocketwithout blocking other concurrent threads
val send : 'a t -> string -> unit T.Deferred.tsend socketsends a message onsocketwithout blocking other concurrent threads
val recv_all : 'a t -> string list T.Deferred.trecv_all socketwaits for a multi-part message onsocketwithout blocking other concurrent threads
val send_all : 'a t -> string list -> unit T.Deferred.tsend_all socket msends all parts of the multi-part messagemonsocketwithout blocking other concurrent threads
val recv_msg : 'a t -> Zmq.Msg.t T.Deferred.trecv_msg socketwaits for a message onsocketwithout blocking other concurrent threads
val send_msg : 'a t -> Zmq.Msg.t -> unit T.Deferred.tsend_msg socketsends a message onsocketwithout blocking other concurrent threads
val recv_msg_all : 'a t -> Zmq.Msg.t list T.Deferred.trecv_msg_all socketwaits for a multi-part message onsocketwithout blocking other concurrent threads
val send_msg_all : 'a t -> Zmq.Msg.t list -> unit T.Deferred.tsend_msg_all socket msends all parts of the multi-part messagemonsocketwithout blocking other concurrent threads
val close : 'a t -> unit T.Deferred.t
module Router : sig ... endmodule Monitor : sig ... end