mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 22:50:19 +02:00
Problem: cannot monitor state of queues at runtime
Solution: add API and ZMQ_EVENT_PIPES_STATS event which generates 2 values, one for the egress and one for the ingress pipes respectively. Refactor the events code to be able to send multiple values.
This commit is contained in:

committed by
Luca Boccassi

parent
cb73745250
commit
feadf6d40f
@@ -409,6 +409,11 @@ void zmq::session_base_t::process_attach (i_engine *engine_)
|
||||
zmq_assert (!_pipe);
|
||||
_pipe = pipes[0];
|
||||
|
||||
// The endpoints strings are not set on bind, set them here so that
|
||||
// events can use them.
|
||||
pipes[0]->set_endpoint_pair (engine_->get_endpoint ());
|
||||
pipes[1]->set_endpoint_pair (engine_->get_endpoint ());
|
||||
|
||||
// Ask socket to plug into the remote end of the pipe.
|
||||
send_bind (_socket, pipes[1]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user