MonitoredQueue classes and functions.
Start a monitored queue device.
A monitored queue behaves just like a zmq QUEUE device as far as in_socket and out_socket are concerned, except that all messages also go out on mon_socket. mon_socket also prefixes the messages coming from each with a prefix, by default ‘in’ and ‘out’, so all messages sent by mon_socket are multipart.
The only difference between this and a QUEUE as far as in/out are concerned is that it works with two XREP sockets by swapping the IDENT prefixes.
Parameters : | in_socket : Socket
out_socket : Socket
mon_socket : Socket
in_prefix : str
out_prefix : str
|
---|