Java - Send Message to all Clients - What is wrong?

I am new to networking programming in java. I would like to send a message to ALL connected clients. There are some similiar questions, but I do not understand, why my code does not work... :(

I have a List of Echoers that take socket as parameter. So i thought, I will be able to get that socket - then outputstrem - write to that stream - send. But It does not obviously work and It sends message ONLY to one client that wrote message... Why is it not functional...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts