On Fri, 12 Dec 2003 15:28:53 +0100, JB wrote:
> I have soe problems whitn treads and I/O.
>
> My program starts severals threads that open tcp connections.
> The main thread waits the user to press Q to stop the program.
>
> It seems that the gets fonction blocks all my threads !!!
> How is it possible?
> What did I wrong?
Tell us about what you are trying to accomplish?
make a server? or a client?
Its seems to me, that you are confusing server/client.
A: using TCPSocket, is a client thing.
B: multiple threads which operates on the same port (server).
Take a look at the TCPServer class, here:
http://www.rubycentral.com/book/lib_network.html
--
Simon Strandgaard