4 Nov
2008
4 Nov
'08
10:04 p.m.
This kind of thread work is what Twisted can do for you. Either do it with threads or with Twisted. Queue may be more than you need to handle the client-client connections.
Referring to the FAQ Glyph recommended to you,
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputo...
Instead of broadcasting to a list of connections set up a method to obtain the single appropriate connection and write to that.
Thinking about this over again I decided to bring my application to Twisted. I will give up the pending queues and will make the code more readable and control-flow much more traceable. Thanks very much for your advice and sorry for the reply. (i simply pressed `r` in my gmail and started typing...) Tzury