[zeromq-dev] Bidirectional communication

Matt Connolly matt.connolly at me.com
Sat Dec 14 01:01:15 CET 2013


If your server uses a ROUTER socket and your clients use DEALER sockets each can send messages to the other in any order.

Once the clients send a message then the router can know the dealers identity to be able to send messages back. 

Best,
Matt. 

Sent from my iPhone

> On 14 Dec 2013, at 7:39 am, Kelly Sommers <kell.sommers at gmail.com> wrote:
> 
> Hey everyone!
> 
> I'm looking to have a server that can accept many client connections but once connected each client/server relationship is bidirectional. I know it's simple to do request/response but sometimes the server will be the one sending messages to the client first, or sometimes the client to the server first.
> 
> The client will always initiate the connection to the server though.
> 
> Does anyone know if there's an example that shows how to do this? I couldn't find one but some of my ZMQ terminology googling foo might have been off :)
> 
> Thanks for the help in advance!
> Kelly
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list