[zeromq-dev] Message API questions

Jorge.Gonzalez at l-3com.com Jorge.Gonzalez at l-3com.com
Thu Mar 19 22:15:37 CET 2015


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.


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))?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150319/471b47bc/attachment.htm>

More information about the zeromq-dev mailing list