multiuser server problem
i am using thread run on server which server multiuser. i would like server to keep some value until all connected user send some data to server then only the server will broadcast the value to all connected user.
for example, i have 5 client connected to server. in server side, i use array list to keep IP address of connected client . all client should send "hi" to server before server broadcast "hi" to all 5 client.
the problem is, the array list just keep data for the user respectively in server. when client A connected to server, ArrayList keep client A IP. then when client B connected to server, Array List just keep client B IP where client A IP just now disappear.. any idea on where i want ArrayList will hold client A IP then client B connecting to server, IP for client C will add to Array List? anyone can help me? appreaciate

