[zeromq-dev] Notification when socket is connected or disconnected

Nir Soffer nirsof at gmail.com
Sat Oct 2 01:12:41 CEST 2010


Hi, all

Is it possible to get a notification when a socket is disconnected from the
remote side, and when it connects again?

I have a telecom application, when I must know if I'm connected to the
remote side. If I'm connected, I can send a message for the remote side, and
I wait up to 2 seconds for a reply. If I'm not connected, I just skip the
query and can fallback to quicker answer for the waiting person.

In this case, queuing the message for the remote endpoint and sending it
when it is up, maybe few seconds later, is pointless, since the person on
the other side already hangup :-)

Nir Soffer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101002/1e1f1f4c/attachment.htm>


More information about the zeromq-dev mailing list