0% found this document useful (0 votes)
79 views19 pages

Chat Application: A Java-Based Chat Application

This document discusses a Java-based chat application created by DVS Technologies. It provides group and one-on-one chat capabilities to facilitate real-time communication. DVS Technologies' chat application is used on many client websites worldwide. It can be embedded using different login forms. The document also discusses how sockets allow for two-way communication between a client and server program by binding them to specific port numbers, with the server listening on a port for connection requests from clients. A port scanner is used to find the port number the server is listening on by trying different ports.

Uploaded by

Sahill
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views19 pages

Chat Application: A Java-Based Chat Application

This document discusses a Java-based chat application created by DVS Technologies. It provides group and one-on-one chat capabilities to facilitate real-time communication. DVS Technologies' chat application is used on many client websites worldwide. It can be embedded using different login forms. The document also discusses how sockets allow for two-way communication between a client and server program by binding them to specific port numbers, with the server listening on a port for connection requests from clients. A port scanner is used to find the port number the server is listening on by trying different ports.

Uploaded by

Sahill
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 19

Chat Application: a Java-based

chat application
Guided By Prepared By
Ms Nehal Pa5tel Parth
Patel
(12IT066)
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.
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.
Many of our 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.
How Mobile Chat application looks like
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.
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.
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.
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.
Port Scanner

findTheApplicationPort(Host Address,
Start Port,
End Port )
Keep Trying
Port Scanner
Chat Client Chat Server
(Port 50005)
Port Scanner
Chat Client Chat Server
Try 50000 (Port 50005)

Timeout
Port Scanner
Chat Client Ooops! Chat Server
(Port 50005)
PortScanner
Port Scanner
Chat Client Chat Server

Try 50001 (Port 50005)


PortScanner

PortScanner Try 50002


Threads
Try 50003
Try 50004
Port Scanner
CheapChat Connect at CheapChat
Client 50005 Server
PortScanner (Port 50005)

PortScanner
Threads Authenticate:
Are you a
Chat server?
Port Scanner
CheapChat CheapChat
Client Server
PortScanner (Port 50005)

PortScanner
Threads Reply:
I am a Chat
server!
Port Scanner
CheapChat Connect at CheapChat
Client 50005 Server
(Port 50005)
This is how communication between server
And Client takes place using socket.
Thank You

You might also like