NETWORK PROGRAMMING (SECURED CLIENT-SERVER CHAT APPLICATION)

By

Author

Presented To

Department of Computer Science

ABSTRACT
Several network systems are built to communicate with one another as well as made available through service-oriented architectures. In this project, the client server architecture is used to develop a chat application. Firstly a chat application is created for both Client and Server which is based on Transmission Control Protocol (TCP) where TCP is connection oriented protocol and is a reliable connection protocol. As security is the key factor while communicating over a network, so in this project, MySQL SSL protocol and hash function was used for the Database based on a numbers of benefits. The hash values of the real password and the random generated number (salt) is stored in the database. The original password is not stored on the system, making cracking of password much harder

CHAPTER ONE
1.1 INTRODUCTION
Several 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.
13
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 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:
14
 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 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
15
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).
1.4 OBJECTIVES OF THE STUDY
The aim of this project is to develop a reliable and secure network programming (Client-Server chat model) which can perform a multithreaded server client chat
16
application based on Java socket programming using Transport Control Protocol (TCP). As security is the key factor while communicating over a network, hash function with salt is used for the Database based on a number of benefits. MySQL became the choice for the implementation of this application based on its scalability and flexibility, high performance, high availability, strong data protection, web and data warehouse strengths, management ease, lowest total cost of ownership and open source freedom.
1.5 SIGNIFICANCE OF THE STUDY
Apart from just performing the regular client server chat, this client-server chat is robust and significant in the following ways:
This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the This project use MySQL for its database to make information in the secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messag secure. The personal details and messages including the private messagsecure. The personal details and messages including the private messagsecure. The personal details and messages including the private in the es in the es in the es in the es in the es in the es in the es in the es in the Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in Database are encrypted using encryptor (one of the security facilities available in the MySQL). the MySQL).

About e-Project Material Centre


e-Project Material Centre is a web service aimed at successfully assisting final year students with quality, well-researched, reliable, and ready-made project work. Our materials are recent, complete (chapter 1 to Minimum of Chapter 5, with references), and well-written. INSTANT ACCESS! INSTANT DOWNLOAD. Simply select your department, choose from our list of topics available, and explore your data.

Why Students Love to Use e-Project Material?


Guaranteed Delivery: Getting your project delivered on time is essential. You cannot afford to turn in your project past the deadline. That is why you must get your project online from a company that guarantees to meet your deadline. e-Project Topics Material Centre is happy to offer instant delivery of projects listed on our website. We can handle just about any deadline you send our way. Satisfaction Guaranteed: We always do whatever is necessary to ensure every customer's satisfaction.

Disclaimer


e-Project Topics Material Centre will only provide projects as a reference for your research. The projects ordered and produced should be used as a guide or framework for your own project. The contents of the projects should help you generate new ideas and thoughts for your own project. It is the aim of e-Project Topics Centre to only provide guidance by which the projects should be pursued. We are neither encouraging any form of plagiarism nor are we advocating the use of the projects produced herein for cheating.

Terms and Conditions


Using our service is LEGAL and IS NOT prohibited by any university/college policies. You are allowed to use the original model papers you will receive in the following ways:
  • As a source for additional understanding of the subject
  • As a source for ideas for your own research (if properly referenced)
  • For PROPER paraphrasing (see your university definition of plagiarism and acceptable paraphrase) Direct citing (if referenced properly)
Thank you so much for your respect to the author's copyright.

Refund and Privacy Policy


  • Refunds: All sales are final. However, if you encounter any issues with accessing your purchased material, kindly contact our support team for immediate resolution.
  • Privacy Policy: Your personal information is protected and will not be shared with third parties. We ensure secure payment processing and data confidentiality.

Contact Information


X

Need Help Finding or Downloading Your Project Material?

If you don't see the topic you're looking for or You need urgent/express attention, click the WhatsApp Icon/link below to contact ADMIN and get the material you need instantly. We are always available online to attend to your needs. Thanks