chat application

19
Online Chat Application PRESENTED BY AMIT DUBEY

Upload: amit-dubey

Post on 23-Jan-2017

22 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Chat Application

Online Chat Application

PRESENTED BY

AMIT DUBEY

Page 2: Chat Application

What is Chatting?

• On the Internet, chatting is talking to other people who are using the Internet at the same time you are.

• In some cases, a private chat can be arranged between two parties who meet initially in a group chat.

Page 3: Chat Application

What is Chat Application?

• Chat Application is primarily meant based group chat to refer to direct one-on-one chat or text. DVS Technologies provide both type of chat application. DVS Technologies chat application facilitates real-time communication, with its superior feature set and unprecedented reliability. DVS Technologies chat application increases the efficiency of the communication process.

Page 4: Chat Application

• Many clients are using DVS Technologies chat application in their websites worldwide for communicating to their prospective clients. We can embed different type's forms to login to the chat application.

Page 5: Chat Application

How Mobile Chat application looks like

Page 6: Chat Application

What Is a Socket?

• Definition: A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data is destined to be sent to [4].

• Normally, a server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket for a client to make a connection request.

Page 7: Chat Application

• On the client-side: The client knows the hostname of the machine on which the server is running and the port number on which the server is listening. To make a connection request. The client also needs to identify itself to the server so it binds to a local port number that it will use during this connection. This is usually assigned by the system.

Page 8: Chat Application

• If everything goes well, the server accepts the connection. Upon acceptance, the server gets a new socket bound to the same local port and also has its remote endpoint set to the address and port of the client. It needs a new socket so that it can continue to listen to the original socket for connection requests while tending to the needs of the connected client.

Page 9: Chat Application

• On the client side, if the connection is accepted, a socket is successfully created and the client can use the socket to communicate with the server.

• The client and server can now communicate by writing to or reading from their sockets.

Page 10: Chat Application

Port Scanner

Find The Application Port (Host Address, Start Port, End Port)

Keep Trying…

Page 11: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)

Page 12: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)Try 50000…Timeout …

Page 13: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)Port-Scanner

Oops!

Page 14: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)Port-Scanner

Try 50001…

Try 50002…

Try 50003…Try 50004…

Port-ScannerThreads

Page 15: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)Port-Scanner

Port-ScannerThreads

Connect at 50005

Authenticate:“Are you a

Chat server?”

Page 16: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)Port-Scanner

Port-ScannerThreads Reply:

“I am a Chat server!”

Page 17: Chat Application

Port ScannerChat “Client” Chat “Server”

(Port 50005)

Connect at 50005

Page 18: Chat Application

• This is how communication between server And Client takes place using socket.

Page 19: Chat Application

Thank You