[zeromq-dev] equivalent of accept

Martin Sustrik sustrik at 250bpm.com
Tue Apr 20 17:00:51 CEST 2010

Varol Okan wrote:

> Yes but how do I decouple the main server loop from the client handler loop ? 
> I.e. I'll get a new FD to talk to the client through accept, which will allow 
> the main server thread to wait for other clients to connect and have the 
> client handler do the work of this one client.

You don't have to. The dialogue with peers is defined by "messaging 
pattern" (i.e. socket types), see zmq_socket(3)


More information about the zeromq-dev mailing list