[zeromq-dev] locale communication with REQ-REP Pattern

Andrew Hume andrew at research.att.com
Wed Dec 5 10:29:40 CET 2012


martin,

	what pattern (REQ-REP, PUB-SUB, PUSH-PULL) are you using?

	if REQ-REP, then its all handled inside zmq. or did you want to know those details?

On Dec 5, 2012, at 2:24 AM, M.Hua at gmx.de wrote:

> Hi,
> 
> I have implemented a client-server application a couple of days ago, where a client sends a string message to the server and waits for his reply message.
> 
> When I run a server and n Clients, then the server knows which message, that the server received, belongs to which client, and then accordingly sends a reply message to the correct client. 
> 
> For example, if Client1 sends a message "Client1" and Client2 sends a message "Client2", then the server sends a reply to Client1 "Hello Client1" and to Client2 "Hello Client2", and not "Hello Client2" to Client 1 and "Hello Client 1" to Client 2.
> 
> How does the server knows which message received belongs to which client in order that the server can send the reply to the message of the correct client?
> 
> For your help I thank you in advance.
> 
> Best regards,
> Martin
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev


-----------------------
Andrew Hume
623-551-2845 (VO and best)
973-236-2014 (NJ)
andrew at research.att.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121205/8f36eaff/attachment.htm>


More information about the zeromq-dev mailing list