[zeromq-dev] How to tell from an exception thrown by recv_string() if this exception is for the listening socket or for the client socket?
Yuri
yuri at rawbw.com
Sat Oct 8 01:50:44 CEST 2022
On 10/7/22 16:35, orzodk wrote:
> If I understand your question correctly, you have two different
> sockets: `listener` and `client`
No. The code in the original message explicitly creates only one ZMQ
socket, which under the hood creates one listening socket, and then when
connections are accepted it creates client sockets.
Within the loop the only ZMQ call is socket.recv_string() which works
with both listening socket and client socket.
The question is: how to differentiate between error conditions on
listening socket and on client socket, since they should be handled
differently.
Yuri
More information about the zeromq-dev
mailing list