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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: A question about threads.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password