Module holding utility and convenience functions for zmq event monitoring.
decode zmq_monitor event messages.
Parameters: | msg (list(bytes)) – zmq multipart message that has arrived on a monitor PAIR socket. First frame is: 16 bit event id
32 bit event value
no padding
Second frame is the endpoint as a bytestring |
---|---|
Returns: | event – event description as dict with the keys event, value, and endpoint. |
Return type: | dict |
Receive and decode the given raw message from the monitoring socket and return a dict.
Requires libzmq ≥ 4.0
Parameters: |
|
---|---|
Returns: | event – event description as dict with the keys event, value, and endpoint. |
Return type: | dict |