CHATROOM PROJECT Supervised by DAN WITZNER HANSEN Group Members ESWAR EMMADI SURESH KUMAR DONTHA
CLIENT-SERVER MODEL - TCP/IP - JAVA SOCKETS - THREADS
CLIENT SERVER Server: listens to client’s connection request. accepts or rejects a connection request accordingly. upgrades all online clients’ UserLists when any client logs out or log on. receives messages from clients and broadcasts them accordingly. Client: requests connection to the known server (server ID and port is known) sends message to server, giving indication whether it is private or public. logs out and notice server. receives message from server and put into public response or private response text area accordingly
AUSSUMPTIONS One server – multiple clients The server is started first No user authentication required
Client Interface Server ID/Name: Username:
Client Interface UserList Message GetUsers Public Message Private Message
Client Interface
CLASS OVERVIEW
LIMITATIONS Single server => Single point of failure Message broadcast
FURTHER ENHANCEMENTS User authentication File sharing