[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: A question about threads.

Benjamin Stiglitz

10/2/2007 8:26:00 PM

Chris Bailey wrote:
> What do I need to do to make the following code write the input from
> each thread to all other active threads? I can't figure out how to
> access the list of threads in GServer.

You could keep a hash of connected clients (managed with
TestServer#connected and TestServer#disconnected) and stow some
information away in there, polling for it in your loop.

-Ben
--
Posted via http://www.ruby-....