SECURITY NETWORK PROGRAMMING(SECURED CLIENT-SERVER CHAT APPLICATION)
ABSTRACT
CHAPTER 1
INTRODUCTION
1.1 BACKGROUND OF THE STUDY
Several security network systems are built to communicate with one another and are made available through service-oriented architectures. In this project, we use the client server architecture to develop a secured Client-Server chat application. A chat application is created based on Transmission Control Protocol (TCP) where TCP is connection oriented protocol and in the end, multithreading is used to develop the application.
A client-server chat application consists of a Chat Client and a Chat Server and there exists a two way communication between them. Here, Message Processor is used to interpret message from the user, Message Interpreter is used to extract and pass the received message. Message Maker is used to construct back the message and Client Manager is used to maintain the clients list which the sender and receiver at both sides use to interact with each other.
In general, the server process will start on some computer system; in fact, the server should be executed before the client. Server usually initializes itself, and then goes to wait state or sleep state where it will wait for a client request. After that, a client process can start on either the same machine or on some other machine. Whenever the client wants some service from the server, it will send a request to the server and the server will accept the request and process it. After the server has finished providing its service to the client, the server will again go back to sleep, that is, waiting for the next client request to arrive. This process is repeated as long as the server processes is running. Whenever such request comes, the server can immediately serve the client and again go back to the waiting state for the next request to arrive.
1.2 BACKGROUND OF THE STUDY
Client server model is the standard model which has been accepted by many for developing security network applications. In this model, there is a notion of client and notion of server. As the name implies, a server is a process (or a computer in which the process is running) that is offering some services to other entities which are called clients. A client on the other hand is process (which is running) on the same computer or other computer that is requesting the services provided by the server.
A chat application is basically a combination of two applications:
• Server application
• Client application
Server application runs on the server computer and client application runs on the client computer (or the machine with server). In this chat application, a client can send data to anyone who is connected to the server.
Java application programming interface (API) provides the classes for creating sockets to facilitate program communications over the security network. Sockets are the endpoints of logical connections between two hosts and can be used to send and receive data. Java treats socket communications much as it treat input and output operations; thus programs can read from or write to sockets as easily as they can read from or write to files.
To establish a server connection, a server socket needs to be created and attached to a port, which is where the server listens for connections. The port recognizes the Transmission Control Protocol service on the socket. For instance, the email server runs on port 25, and the web server usually runs on port 80.
Server Execution: At server the side, a thread is created which receives numerous clients’ requests. It also contains a list in which Client’s name and IP addresses are stored. After that, it broadcast the list to all the users who are currently in chat room and when a client logs out then server deletes that particular client from the list, update the list and then broadcast the list to all available clients.
Client Execution: A client firstly must have to register itself by sending username to the server and should have to start the thread so that system can get the list of all available clients. Then any of two registered clients can communicate with each other.
1.3 STATEMENT OF THE PROBLEM
The client-server communication model is used in a wide variety of software applications. Where normally the server side is sufficiently protected and sealed from public access, but client applications running on devices like notebooks and desktops are considered insecure and exposed to security threats.
The main weakness of client-server chat application is that there is no security provided to data which is transferred between clients. Any unauthorized client can hack the client account and can change the data. This is the main objective of this project (To develop a secured Client-Server Chat Application).
Departments
- Accounting Projects [85]
- Accounting And Management Projects [6]
- Accounting Education Projects [1]
- Adult And Primary Education Projects [6]
- Agricultural And Bio-environmental Engineering Technology Projects [8]
- Agricultural Economics And Extension Projects [57]
- Agricultural Engineering Projects [3]
- Agricultural Technology Projects [1]
- Agriculture Projects [104]
- Agriculture Education Projects [3]
- Anatomy Projects [1]
- Architecture Projects [28]
- Banking And Finance Projects [53]
- Basic Medical Sciences Projects [1]
- Biochemistry Projects [25]
- Biological Sciences Projects [46]
- Biology Education Projects [13]
- Botany Projects [3]
- Building Projects [58]
- Business Administration Projects [151]
- Business Studies Projects [76]
- Chemical Engineering Projects [24]
- Chemistry Education Projects [3]
- Civil Engineering Projects [80]
- Community Health Projects [35]
- Computer Education Projects [6]
- Computer Engineering Projects [28]
- Computer Science Projects [138]
- Construction Engineering And Management Projects [1]
- Cooperative Economics Projects [0]
- Cooperative Economics And Management Projects [2]
- Criminology Projects [68]
- Cyber Security Projects [2]
- Data Science Projects [1]
- Economics Projects [107]
- Economics Education Projects [1]
- Education Projects [189]
- Educational Foundation Projects [9]
- Educational Management Projects [44]
- Electrical/electronics Engineering Projects [140]
- English Education Projects [14]
- English Language Projects [6]
- English Language And Literature Projects [18]
- Entrepreneurship Projects [7]
- Environmental Science Projects [79]
- Epidemiology And Community Health Projects [2]
- Estate Management Projects [40]
- Fashion & Design Projects [1]
- Fine Art Projects [1]
- Food And Nutrition Projects [2]
- Food Science And Technology Projects [52]
- Geography Projects [24]
- Geography Education Projects [4]
- Government And Public Administration Projects [1]
- Guidance And Counselling Projects [132]
- Health Education Projects [9]
- Health Information Management Projects [3]
- History And International Studies Projects [3]
- Human Kinetics And Healthy Education Projects [2]
- Human Resources Management Projects [111]
- Industrial Relations And Personnel Management Projects [58]
- Information And Communication Technology Projects [2]
- Institute Of Education Projects [1]
- Insurance And Risk Management Projects [1]
- International Relations Projects [55]
- Islamic Studies Projects [3]
- Law Projects [21]
- Leisure And Tourism Management Projects [2]
- Library And Information Science Projects [85]
- Linguistics Projects [104]
- Marketing Projects [78]
- Mass Communication Projects [188]
- Mathematics Projects [3]
- Mathematics Education Projects [1]
- Mechanical Engineering Projects [86]
- Medical And Health Science Projects [82]
- Medical Laboratory Science Projects [2]
- Medical Radiography Projects [2]
- Medicine And Surgery Projects [2]
- Metallurgical Engineering Projects [2]
- Microbiology Projects [120]
- Minerals And Petroleum Resources Engineering Projects [32]
- Mining Engineering Techology Projects [2]
- Nursing And Nidwiffery Projects [124]
- Office Technology Management Projects [104]
- Parasitology And Entomology Projects [3]
- Petroleum Engineering Projects [3]
- Pharmacy Projects [18]
- Philosophy Projects [111]
- Physics Projects [3]
- Physiology Projects [1]
- Political Science Projects [123]
- Primary Education Projects [5]
- Project Management Projects [1]
- Psychology Projects [61]
- Psychology Education Projects [1]
- Public Administration Projects [123]
- Public Health Projects [100]
- Purchasing And Supply Projects [112]
- Pure And Industrial Chemistry Projects [8]
- Quantity Surveying Projects [59]
- Science Education Projects [4]
- Science Laboratory Technic Projects [108]
- Science Laboratory Technology (stl) Projects [21]
- Secretarial Administration Projects [40]
- Sex Education Projects [2]
- Social Studies Projects [8]
- Sociology Projects [126]
- Statistics Projects [107]
- Surveying And Geoinformatics Projects [4]
- Theology Projects [9]
- Transportation And Management Projects [3]
- Urban & Regional Planning Projects [1]
- Value Engineering Projects [1]
- Vocational Education Projects [1]
- Zoology Projects [1]