Hi guys,
  I'm new to zeromq and we are in the process of evaluating the library to use 
it in our large project (a 2 years project). 

I have a simple question concerning the zmq_socket_monitor and the routing 
number (on the server side) . 
So, when a connection is made, we receive a ZMQ_EVENT_CONNECTED and we can 
extract the socket file descriptor and get the client socket IP address from 
the file descriptor.
   1) Is there a way to correlate the socket file descriptor to the routing 
numbers associated to the messages that are coming in. We have many clients and 
we would like to know  exactly who is disconnecting or closing the connection 
so we can cleanup some resources when that happens ( when ZMQ_EVENT_CLOSED or 
ZMQ_EVENT_DISCONNECTED are triggered).

  2)  The IP address may not be needed if there is a way to get a notification 
that the client associated with a giving routing number is disconnected . Is 
that functionality available? We couldn't find that.  If no, would someone 
knows how to implement that?


Thank you for your help,
Toky
  
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to