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

Martin Hua M.Hua at gmx.de
Wed Dec 5 14:21:51 CET 2012


Hello,

my answers are below.

-------- Original-Nachricht --------
> Datum: Wed, 5 Dec 2012 02:29:40 -0700
> Von: Andrew Hume <andrew at research.att.com>
> An: ZeroMQ development list <zeromq-dev at lists.zeromq.org>
> Betreff: Re: [zeromq-dev] locale communication with REQ-REP Pattern

> martin,
> 
> 	what pattern (REQ-REP, PUB-SUB, PUSH-PULL) are you using?
I have used REQ-REP pattern.

> 
> 	if REQ-REP, then its all handled inside zmq. or did you want to know
> those details?
Ah, ok. If it is possible and ok, then I like to know some details about REQ-REP,
how its all handled inside zmq.




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



More information about the zeromq-dev mailing list