Hi,
As u wanted the logic I am sending the steps that are very important .You can write the code and if you have any problem you can ask me or mail me . I am not sending the code as I feel developing the application urself improves the skills of the persone and will also help u to know more of
java Server
--------
1)Create a server socket using the serversocket class of
2)Assign a port to it
3)accept the data from the client . this port should be continuously lisenting to the port so it should be in a while loop
4)store the details in the hash table of the new user
5)read the entire list and send the message recieved from each the client.
Client
-------
1)Make use of socket. Pass paramater to it (ie the ip address and the port on which the server is listening ).
2)Create a
thread for the client class as the client should recieve what ever is send from the client
------------------
Sandeep Jain