Varol,

> I want to have a server waiting for clients on port 5500
> 
> Then shift the communication to a separate thread and have the
> clienthandler thread do the communication with the client and have the
> main server thread free to listen to incoming clients.
> 
> I expect some heavy logic to be exercised in clienthandler which can
> keep the thread unresponsive for a few seconds, that is why I want the
> server thread freed of the workload and ready or new incoming client
> requests ( from different machines )
> 
> Again, I might be completely off with my understanding of ZMQ

0MQ does this for you. Actual networking stuff is done in I/O thread(s). 
Your application thread is free to do the actual processing.

Martin
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to