Thursday, August 4, 2011

Assignment - Week 5

Create one chat solution, which will be used to chat between two users.

- Server component will be used to connect multiple users
- Client Component will be used to connect to server.
- Multiple Client Components will be able to send message to each other via Server.

Server Start Up Flow
- Server Listen to a port (6666)

Connect Flow
- Client Open Socket with Server and then Send a message 'LOGON' which will ensure that this user is connected with Server

Chat with Server
- Client Open Socket with Server
- Client Send 'LOGON' Message to Server
- Client Send Message to 'Chat Message'

Chat with Another Client
- Client Open Socket with Server
- Client Send 'LOGIN' Message to Server
- Client Send Message 'CLIENT1 == Message for Client'
- Server check if CLIENT1 is connected or not.
- If Client1 is connected send this message to him/her, otherwise respond user is not present

No comments:

Post a Comment