Hello,

I have a server using ROUTER sockets and clients using DEALER sockets.  The 
idea is to follow a protocol where:

1.     Client sends request

2.     Server sends a reply with information

3.     Client reads the reply from server and depending on the information, 
send data to the server

4.     The server should then read the data and store it in a queue.

Steps 1 - 3 work, however when the client sends the data, the server errors 
with "Bad address" and quits.

Questions:

1.     Must the ROUTER socket code read the identity before sending or 
receiving every message?

2.     After a message is received (zmq_msg_recv(&msg)), can the same message 
be sent (zmq_msg_send(&msg, socket, ZMQ_SNDMORE))?

Thanks,
Jorge

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

Reply via email to