
NETWORK PROGRAMMING
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.
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:
- 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 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 Aim and 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 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 database secure. The personal details and messages including the private messages in the Database are encrypted using encryptor (one of the security facilities available in the MySQL).
This project implements hash function with the password before the encryption and then stored in the Database. It also uses random generated numbers (salt) that is calculated together with the passworded hash values and stored in the Database. As a result, even if the database is compromised, the salt added to hash values makes it harder to compute the original password. This random salt is used with the hash function to significantly increase the strength of encrypting passwords and thus makes cracking greatly impossible. This makes the chat application server reliable and more secured.
Another significance of this application is private chatting. This is where two users can chat in private. The messages between the users are not displayed / seen in the general chat display text field. The messages are displayed only within the private message display text field.
1.6 Scope Of The Study
The project shall consider among other things the following issues:
- To provide a better understanding of how network programming in java works.
- Develop a reliable network communication for a Client-Server chat application.
- Analyses of network programming in java (Multithreaded Client-Server Chat applications) for better understanding of the
- Conduct an experimental result in order to establish the parameter of the problem. In conclusion, suggest ways the problems can be eliminated and recommends how the problems can be
1.7 Limitations of Study
The previous Client-Server Chat system implements only hash function with the password before the encryption which is then stored in the Database. Thus, the database can be compromised easily to compute the original password.
Some drawbacks of the Client-Server Chat are as follows:
- As the server receives as many requests from clients so there is a chance that server can bec44ome congested and
- In case of server fails then the users also
- A lost password is
- Any unauthorized client can hack the client account and can change the
1.8 Organization Of The Work
In this project, a secure java chat application is considered which relies on the client-server paradigm to exchange the information. It is divided into five chapters. Chapter one is the introduction which consists of the background of study, significance of the study, scope of the study, limitations of the study, organization of the work and the definition of terms.
The second chapter focuses on the literature review of relevant scholar’s opinions relevant to this study such as socket programming in java, overview of secure socket layer, hash function e.t.c.
The third chapter gives details of the main methodology and system design to implement the client-server chat application in java. First of all the application is developed by using TCP then and in the end multithreading is used to develop the application. At the end of chapter weaknesses (deadlocks) of multithreading is discussed which can be removed by using synchronizing threads.
Chapter four is the implementation of the secured Java Client-Server Chat Application: it test and analysis the implementation of the application.
Chapter five ends the project report. Firstly, a short summary highlights the main points of the whole project. Next, a number of conclusions and recommendations are given and lastly Appendix.
1.9 Definition Of Terms
Socket: Socket is a standard connection protocol that supports data communication over the network between connected terminals. The standard connection supports the data transmission both by the TCP and UDP protocols between the terminals.
TCP: TCP is a transport layer protocol used by applications that require guaranteed delivery of data. Basically, it is a connection-oriented protocol. To communicate over TCP one must first have to establish a connection between pair of sockets, where one socket is client and the other belongs to server. After the connection is established between them then they can communicate with each other.
Client: A client is a system that accesses or desires for a service made accessible by a server.
Server: A server is a system (hardware or software) program running to provide the service requests of other system programs.
Port: Port is a software mechanism that allows the centralized connected Servers to listen for requests made by clients. Port is actually purposed as a gateway to listen for the requested parameters by the server terminals or other machines. It is a software address on a system that is on the network. Entire request response proceeding among this Application is carries through machine ports.
Network: This refers to a system were computers are linked to share software, data, hardware and resources for the benefit of users.
Interface: This may be software or hardware that upon an agreed method spells out the manner a system component can exchange information with another system component.
Secure socket layer (SSL): This refers to Secure Sockets Layer protocol that is used for encryption of data for secure data transmission.
IP: This refers to Internet Protocol; it is the reasonable network address of device on a network. It is notational called dotted-decimal (for instance: 128.1.0.1).
Thread: A thread is a section of code which is executing independently of others threads in a same program. Java has a class Thread which is defined in java.lang package. Thread is the most powerful feature that JAVA supports from other programming languages.
CHAPTER TWO
2.0 Literature Review
2.1 Introduction
The review of relevant literature is the main topic of this chapter. A literature review covers theoretical and methodological contributions to a certain issue in addition to the state of knowledge at the time of writing. It provides information about the state of the art in relation to the subject you are writing about. It examines the body of work on the chosen subject. The literature evaluation in this study comprises the …
Procedure for Downloading the PDF (Docx) Material
Network Programming (A Case Study of Secured Client-Server Chat Application) can be downloaded by requesting the full set of materials at the project or seminar cost. The document will be sent via Microsoft Word (MS-Word) format via WhatsApp (e-mail) following payment confirmation.
Seminar Material Cost ₦3,000 | Project Material Cost ₦5,000 |
Request Complete Material
![]() | Click here to request the Complete Material via WhatsApp including;
|
TABLE OF CONTENTSPRELIMINARY PAGES
- Title page
- Approval page
- Dedication
- Acknowledgement
- Table of Contents
- Abstract
INTRODUCTION
- 1.2 Background of the study
- 1.3 Statement of the problem
- 1.4 Objectives of the study
- 1.5 Significance of the study
- 1.6 Scope of the study
- 1.7 Limitations
- 1.8 Organization of the work
- 1.9 Definition of terms
LITERATURE REVIEW
- 2.1 Client-Server and other models
- 2.2 Client-Server communication
- 2.3 Host identification and service port
- 2.4 Sockets and socket based communication
- 2.5 TCP/IP Socket programming
- 2.6 Socket programming in Java
- 2.7 Secure internet programming
- 2.8 Overview of secure socket layer (SSL)
- 2.9 Security
- 2.10 Hash functions
SYSTEM ANALYSIS AND DESIGN
- 3.1 Methodology
- 3.2 Primary Data collection
- 3.2.1 Secondary Data collection
- 3.3 Analysis of the existing system
- 3.4 Limitations of the existing system
- 3.5 System Design
- 3.6 Database Design
- 3.7 System Flowchart
- 3.8 Top Down Diagram
- 3.9 Justification of the new system
IMPLEMENTATION TESTING AND INTEGRATION
- 4.1 Choice of development tools
- 4.2 System Requirements
- 4.2.1 Software Requirements
- 4.2.2 Hardware Requirements
- 4.3 Implementation
- 4.4 Testing
- 4.4.1 Unit Test
- 4.4.2 System Test
- 4.5 Integration
SUMMARY, RECOMMENDATIONS AND CONCLUSION
5.1 Summary
5.2 Limitations
5.3 Recommendations
5.4 Bill Of Engineering Measurement And Evaluation
5.3 Conclusion
BIBLIOGRAPHY
APPENDIX A: Program Codes
APPENDIX B: Sample Output
Disclaimer for Complete Material Utilization
The displayed research work titled "Network Programming" is stated as a research guideline towards accomplishing your assigned project / seminar research work. All the research materials on this website are ONLY for research purposes and should be used as a guideline in developing your research work. For no reason should you copy word for word as projectlist.com.ng will not be liable for any who copied the material. By ordering the complete research guideline, it signifies that you've accepted our terms of service.
PRELIMINARY PAGES
- Title page
- Approval page
- Dedication
- Acknowledgement
- Table of Contents
- Abstract
INTRODUCTION
- 1.2 Background of the study
- 1.3 Statement of the problem
- 1.4 Objectives of the study
- 1.5 Significance of the study
- 1.6 Scope of the study
- 1.7 Limitations
- 1.8 Organization of the work
- 1.9 Definition of terms
LITERATURE REVIEW
- 2.1 Client-Server and other models
- 2.2 Client-Server communication
- 2.3 Host identification and service port
- 2.4 Sockets and socket based communication
- 2.5 TCP/IP Socket programming
- 2.6 Socket programming in Java
- 2.7 Secure internet programming
- 2.8 Overview of secure socket layer (SSL)
- 2.9 Security
- 2.10 Hash functions
SYSTEM ANALYSIS AND DESIGN
- 3.1 Methodology
- 3.2 Primary Data collection
- 3.2.1 Secondary Data collection
- 3.3 Analysis of the existing system
- 3.4 Limitations of the existing system
- 3.5 System Design
- 3.6 Database Design
- 3.7 System Flowchart
- 3.8 Top Down Diagram
- 3.9 Justification of the new system
IMPLEMENTATION TESTING AND INTEGRATION
- 4.1 Choice of development tools
- 4.2 System Requirements
- 4.2.1 Software Requirements
- 4.2.2 Hardware Requirements
- 4.3 Implementation
- 4.4 Testing
- 4.4.1 Unit Test
- 4.4.2 System Test
- 4.5 Integration
SUMMARY, RECOMMENDATIONS AND CONCLUSION
5.1 Summary
5.2 Limitations
5.3 Recommendations
5.4 Bill Of Engineering Measurement And Evaluation
5.3 Conclusion
BIBLIOGRAPHY
APPENDIX A: Program Codes
APPENDIX B: Sample Output
Disclaimer for Complete Material Utilization
The displayed research work titled "Network Programming" is stated as a research guideline towards accomplishing your assigned project / seminar research work. All the research materials on this website are ONLY for research purposes and should be used as a guideline in developing your research work. For no reason should you copy word for word as projectlist.com.ng will not be liable for any who copied the material. By ordering the complete research guideline, it signifies that you've accepted our terms of service.
Frequently Asked Questions (FAQ)
Is the topic “Effect of Teachers’ Professionalism on Students’ Academic Performance in English” recommended for Education Project?
Yes it is highly recommended — The study examined effect of teachers’ professionalism on students’ academic performance in English, a case study of public secondary schools in Jalingo Local Government area of Taraba State. The study employed the survey design and the purposive sampling technique to select 450 staff SSS 1-3 level. A well-constructed questionnaire, which was adjudged valid and reliable, was used for collection of data from the respondents. The data obtained through the administration of the questionnaires was analyzed using the Pearson correlation analysis. The results showed that there is positive and significant relationship between teachers’ personality and students’ academic performance in English Language (r=0.772; p<0.05). Teacher-students’ interaction and students’ academic performance in English Language (r=.896; p<0.05). Teachers’ action and students’ disposition towards the study of …
Can this topic “Design and Implementation of Active Chat Detection and Suspicious Chat Detection System” be used for Computer Science (CS) Project?
Yes it can be utilized for research — An active chat is referred to any kind of communication over the Internet that offers a real-time transmission of text messages from sender to receiver. The aim of the study is to Design and Implement a Active Chat Detection and Suspicious Chat Detection System. In achieving this aim, the following specific objectives were laid out to design an Active Chat Detection and Suspicious Chat Detection System, develop a conceptual design for a secure, accessible and user-friendly web based chat application, perform tests on the said system to assure functionality, accessibility and usability of the system and evaluate the existing literature of instant messaging and access the already made Chat Application System and improve on their deficiencies. The motivation that led …
Can the material for “Analyzing Debt Management Technique Business Organizations in Nigeria” be used as a guide for Business Management Project?
Yes it can be used — Previously debt can be talked of when individual, group of society, economic position suffers inadequately it was the only time measure of organizational or individual economic expansion. This research work delves into the business meaning of “debt” analyzing its management in a business organization. The fruit of its efficient management in an organization. The researchers did not relent in their efforts to point out where and why the impact of debt is felt mostly in business life. It has found that debt exist throughout the life of a business organization from the initial capital outlay, in the time of further expansion, in daily transactions or with the suppliers With the close look of the eastern bottlers limited Enugu (makers of limca) the …
Can this topic “Impact of Group Dynamics in Work Organization in the Food and Beverage Industry” be used for Industrial Relations and Personnel Management (IRPM) Project?
Yes it can be utilized for research — The study examines the impact of Group Dynamics in Work Organisation in the Food and Beverage Industry, with special reference to Nestle Nigeria plc. To achieving this, related literature was cited on Group dynamics. Descriptive research design approach was employed for the research design and a simple random sampling technique was used in selection of respondents. A sample of 50 respondents was selected from the population study. Fifty (50) questionnaires were administered to the staff of Nestle Nigeria Plc. The research instrument used are the questionnaire, frequency distribution; percentage and chi-square were methods of data analysis used for the study. It is however shown from the study that: Group Dynamics exists within work organization, also Group Dynamics has a significant impact on organizational performance. Recommendations were …
Is the topic “Effect of Sustainable Infrastructural Development on Economic Development of Telecommunication Sector in Nigeria” recommended for Accountancy / Accounting Project?
Yes it is highly recommended — In this research EFFECT OF SUSTAINABLE INFRASTRUCTURAL DEVELOPMENT ON ECONOMIC DEVELOPMENT OF TELECOMMUNICATION SECTOR IN NIGERIA work on the effect of sustainable infrastructural development on economic development of Nigeria. The researcher examined the effect of sustainable infrastructure on the gross domestic product (GDP) of Nigeria. The impact of infrastructural development on the Gross Fixed Capital Formation (GFCF) of Nigeria. Explore the impact that infrastructural development has on Nigeria’s economic growth. Data for the study was sourced through CBN Annual report and journal articles related to the subjects matter. The data collected was analyzed using SPSS. The results of the study shows that The results as presented in the coeficiente revealed that calculated t-statistics (t = -2.723) for parameter GDP is …
Is the topic “Job Satisfaction and Organisational Productivity in Plateau State Civil Service Commission Nigeria” recommended for Business Administration and Management (BAM) Project?
Yes it is highly recommended — The main aim of the research topic; job satisfaction and organizational productivity in plateau state civil service commission Nigeria is to determine the relationship between the employee satisfaction and organizational performance, the effect of reward was also investigated. The research work made use of research questionnaire to elicit information on job satisfaction and organizational productivity; the method of chi-square and pearson correlation method were used for the purpose of the analysis; we were able to find out that there is an improvement in the organisational productivity with the increase in the level of employee satisfaction and also the growth of an organisation is dependant on the level of employees satisfaction and we concluded that there is a significantly strong relationship …
Can the material for “The Design and Implementation of Traffic Light” be used as a guide for Computer Science (CS) Project?
Yes it can be used — This work has been aimed at efficient means of controlling the traffic effectively for twenty-four hours. As the world is growing technologically more and more vehicles jump into the public road adding to the already existing number. Consequently, more efficient way of controlling the traffics becomes more desirable as compared to the obsolete way of using the traffic personnel's. The design of this traffic light control is grouped basically into three; digital logic design, the power circuit and the power supply design. The digital logic design is based on integrated circuits which happens to be the modern way of designing digital systems, the power circuit design is aimed at lighting the different LEDS as and when due, while the power supply …
Can the material for “Job Evaluation: A Tool for Wage / Salary Determination” be used as a guide for Business Administration and Management (BAM) Project?
Yes it can be used — This research work is defined to study job Evaluation a tool for wage/salary determination using Nigeria Bottling Company Aba as a case study organizations. In collecting data for the research, well structured questions were used. This questionnaire enabled the collection of primary data form 526 and 431 respondents for Nigerian bottling company respectively. The table show that job evaluation/remains the major and indispensable tool for the determination of wage/salary structured of worker in case study organization. The findings revealed that the concept of value added refers to the wealth created by the combined efforts of capital and how this wealth is proportioned among the various segments. More so, job evaluation harmonizes the study structure by anchoring the disparity inherent in a wide range of …
Is the topic “Achieving Quality Service Delivery in the Banking Sector Through Information Communication” recommended for Banking and Finance (BF) Project?
Yes it is highly recommended — This study investigates how service delivery in the banking sector is achieved through information communication. The broad objective of the study is to find out if customers respond positively to the information technology items such as the ATM and also to ascertain if banking industry have any problem in adopting the information technology as a means of operative in service delivery. Banks have the problem of inability to meet with it’s raising population of customers, and thus, information technology is paramount which helps in boosting workers morale and shielding customers’ confidence. The study uses the primary source of data to collect through stratified questionnaire. A sample size of 30 was used which was chosen using the simple random sampling technique …
Can the material for “The Contribution of the Informal Financial Institutions to the Growth of Small Scale Enterprises in Nigeria” be used as a guide for Entrepreneurship Project?
Yes it can be used — This study is on the contribution of informal financial institutions to the growth of small scale enterprise. The total population for the study is 200 members of cooperative society in Takum local government area of Taraba state. The researcher used questionnaires as the instrument for the data collection. Descriptive Survey research design was adopted for this study. A total of 133 respondents made coordinators,cashiers, old members and new members were used for the study. The data collected were presented in tables and analyzed using simple percentages and frequency …