Professional Documents
Culture Documents
Project Presentation
Project Presentation
Project Presentation
BY
MAHTAB M HUSSAIN
MAYANK MOHAN
NETWORKING BASICS
Transmission Control Protocol (TCP)
This protocol ensures that the data sent over two points in a Netwo
is received in the same order as it is sent
Ports
Is an address which determines the data origin and delivery points
the Network
Sockets
Port
Server
Port
connection
Port
Client
ClientList
The client list class creates a client list object which stores a list of output streams connected to individual clients.
2.
Session
This class creates a session object which listens to the client for messages. It keeps listening until it receives a Conne
Message. Currently, once the session receives a Connect message, it generates a new message saying that user has
The first thing a session object does is add the output stream which leads to the client into the client list object. This m
Input sent from any client will be redirected through the whole list.
3. Server:
The Server Class creates a server object, instantiates a new server listener, opens a
new server socket, launches a new thread and listens to it. Whenever a new client
connects, the server object creates a new session object for the client and goes back
to listening.
Client Section:
1. Client:
The Client object opens a socket to the server and creates a user interface for the user
Once everything has been initialized it launches a ClientListener object (running on a
Separate thread) which listens to the server and informs the client when new text
Arrives. The client object then waits for an action event, and sends any text typed by
The user back to the server.
2. Message:
This is a simple class which describes a message passed between a server and a client
3. ClientListener:
This class creates a new thread which listens to the server for any messages and passes
them
Back to the client.
THANK YOU