hi
I am developing a chat server.(Initially without any GUI , just on DOS promt)
So i am able to connect as many no. of clients as i want (number not fixed)to server.In server i am starting a new
thread for each client connection.And that thread will then take the input from that particular client and give the response back.
But each client i.e. each thread is seperate.So how to pass message coming from one client to all other clients that are connected to my server.
Plus i want that even if any client is not typing any text then also all other messages should be seen on that client.
But if on any client i am using "readLine()" method then the program waits until something is typed on that screen.
So how can i achieve this ?
Please tell me how to send messages across all clients.
[This message has been edited by Anand, Parulkar (edited May 17, 2000).]
[This message has been edited by Anand, Parulkar (edited May 17, 2000).]