Documente Academic
Documente Profesional
Documente Cultură
CHAT PORTAL
Submitted by:
NEPAL COLLEGE OF
INFORMATION TECHNOLOGY
1
1. Abstract
2
2. Introduction
This system provides a suitable platform for both the clients and by
3
3. Problem Statement
4
4. Project Objectives
The objective of project is to make chat portal using client server architecture.
5
5. Significance of the study
The purpose shows the importance of chat in daily life. For those
who use this app they should chat with respective they want as
their condition. They can able to choose according to their need for
the purpose they are using it. No other disturbance from outside
parts. As client and server itself two bodies there is not any
disturbance of outside. The outside user should not bother while in
portal.
6
6. Scope and limitations
I. Scope
- Any person can chat by fulfilling certain criteria of portal.
II. Limitations
- Only one person can operate the machine.
7
7. Literature Study
Whenever a program is under execution, then definitely it would be loaded into a specific
location in the RAM. Now, the local operating system, maintains a tables which has two entries
i) Port number ii) Address of the location in the RAM in which the program under execution
when the sender sends the data, be maintains the IP address of the machine along with the port
no. Local OS maps the port number to the one present in the table it maintains. When it finds
one, there will be a corresponding address of the local of the RAM in which the program is
present. The program which is supposed to receive the data should be executed first before
executing the program which is supposed to send the data. The transferring the data is that every
system will have a buffer memory. The data which is supposed to enter into the system or leave
the system will pass through the buffers only. For convenience, let us assume we have two
machines M-1 and M-2 between which data is to be transferred. Let B-1 be the buffer memory of
M-1 and B-2 be the buffer memory of M-2. For better understanding, let us assume only
pro1.class file is in M-1 and only pro2.class file is present in M-2. M-1 and M-2 are connected
through the network. Since pro2.class file is supposed to receive the data it should be executed
first. Now, we create an object of a class in B-2 of M-2 let us call the object as obj-2. The
reference of obj-2 should be present in pro2.class file. Let this reference be ref-2. Now, in
pro2.class file, we call the accept() method on the reference ie ref-2.accept(). Coming to the
transmitting side, we need to create an object of some class in the buffer B-1 of M-1 let us call
the object as obj-1. The reference of obj-1 should be present in pro1.class file. Let this reference
be ref-1. Another important point is, obj-2 should contain ref-1 and obj-1 should contain ref-2.
Once this process is finished, now the data transmission can be achieved.
8
8. Technical description of project
The application is developed which the help of java network and sockets. The
objects which we create in the buffers using which we send/receive data to/from
the systems across the network are known as sockets. Thus, sockets are nothing
but objects. The transfer of data between the programs which are being executed
in different systems is done through the sockets. Hence, this is known as socket
programming. In order to locate a socket, corresponding to a program in the
buffer of the receiving machine, we need to mention the port number (in which
the program is under execution in the socket object, while creating the socket
object in the buffer of receiving machine. Some important term which are used in
project are listed below.
9
The responsibilities of server and client is proper know while doing project.
Server:
Client:
- Connects itself to the server program based on the port number and machine address
mentioned.
- Now client sends the data first.
- After that, client revives the processed data from the server
Request:
- It is the data going from the client program to the server program.
Response:
- It is the processed data coming from the server program to the client program.
Server socket:
- Server socket has to wait for the connection. It has to be created with the port
number.
Client socket:
- Client socket gets itself connected to the server socket. No port number is required.
10
11
Features of the project:
1) Send request.
2) Trusted center.
3) Receiver
12
9. Proposed deliverables
13
10. Task and time schedule
Duration
Week 10
Week 12
Week 11
Week 1
Week 3
Week 4
Week 5
Week 6
Week 7
Week 8
Week 9
Week 2
Task
Requirement
1.5 week
specification
Coding 3 week
Testing
2.5 week
Maintenance
Documentation 12 weeks
14
We have planned to complete the project by 12 weeks. The required number of days required for
different phases are:
15
11. Bibliography
[1] Kathy Sierra & Bern Bates, Head first java, 2nd.: O’Reilly Media, Inc., 2005.
16