I want to implement a server/client interaction in C++ using ZeroMQ (http://zeromq.org/).
My requirement is to implement a function where if a client sends a request to the server, the server should send multiple pieces of data (in a sequence) back to the client. The client should be able to repeatedly send the request with the server replying with multiple pieces of data on each request.
ZeroMQ prescribes models like req-res, pub-sub, push-pull, but this does not support my requirement because:
1) Req-rep pattern always expects a return message i.e. it is designed as a combination of send and receive
2) pub-sub and push-pull are unidirectional
Which ZeroMQ pattern would suit my requirement, and also which protocol would be better TCP, PGM, EPGM etc....!
Thank you