w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do i send the message to multiple clients in java Client-Server Program

An obvious way to do this would be to cycle through all ClientHandlers in clients and send the message to each of them:

for (ClientHandler ch : clients){
    ch.sendMessage(message); //Or something
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.