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 - 5 days ago

Related Posts

  • Older News
  • UDP/IP message parsing StackOverFlow (3 days ago) - I have a problem with parsing message. I created UDP/IP chat and my server is recognizing if message is a command or a message to send to other clients.Below method...
  • UDP/IP message parsing [duplicate] StackOverFlow (3 days ago) - This question already has an answer here:Difference between matches() and find() in Java Regex5 answersI have a problem with parsing message. I created UDP/IP chat and my server is recognizing...