receiveEvent

Receives a message on the given socket and interprets it as a socket state change event.

socket must be a PAIR socket which is connected to an endpoint created via a $(FREF Socket.monitor) call. receiveEvent() receives one message on the socket, parses its contents according to the specification in the $(ZMQREF zmq_socket_monitor()) reference, and returns the event information as an Event object.

@safe @system
receiveEvent

Throws

ZmqException if $(ZMQ) reports an error.
InvalidEventException if the received message could not be interpreted as an event message.

See Also

$(FREF Socket.monitor), for monitoring socket state changes.

Meta