Client displays following to users.
- Display the names of all known users.
- Display the names of all currently connected users.
- Send a text message to a particular user.
- Send a text message to all currently connected users.
- Send a text message to all known users.
- Get my messages.
- Exit.
Any user which connects at any point of time that the server is running becomes known user. Current user is someone who is currently connected. Message sent by a user is stored in specific format along with recepient's name and sent to the server. The server maintains a hash table from where it can retrieve the message if the recepient wants to view it. Supports unicast and broadcast messaging.
To execute :
java Server 2008 (for server tab where 2008 is port number)
java Client |machine-name| 2008 (for client tabs)