On Jan 27, 2012, at 6:44 AM, Mattias de Zalenski wrote:

> Hi,
> 
> I am wondering whether there is any way to check, for a zeromq socket using 
> tcp, whether the underlying tcp connection/s is/are currently connected.
> 
> Could this be done with a zmq_getsockopt, specific to tcp zmq sockets? I 
> would like something like ZMQ_NCONNECTED, to return the transient number of 
> underlying sockets currently in a connected state.
> 
> The use case is for request routing. We will use heartbeats and load 
> statistics, but for the simple case where an endpoint is explicitly shut down 
> we would like to send incoming requests to other endpoints primarily, without 
> waiting for HWM, heartbeats or other measures to react.

No, this information is not exposed. YOu will need to wait for your other 
measures to react.

cr


_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to