Hello,
Sorry I answer to your question without really answering but it seems that what you are doing is exactly what I want to do (I want to create a chat server for multiple clients and broadcast message of one client to others).
Do you use only one stream or one stream per client (thread) ?
If multiple streams, is it then possible to have a client-thread waiting for a message but having another thread writing on the stream ?
If I succeed I'll see if I face the same issue as you.
Thanks.