Question: Implement this using Java Socket Programming (Exercise 1 and Exercise 2 should be implemented in the same program) Exercise 1 Write a server application which
Implement this using Java Socket Programming (Exercise 1 and Exercise 2 should be implemented in the same program)
Exercise 1
Write a server application which manages an online phone book. The phone book is stored as a text file in the following form:
Name1: Phone No. 1
Name 2: Phone No. 2
..
The server will accept connections from the clients; each client sends the name of a person to the server, the server searches for that persons phone number in the file and returns it to the server. For more information about processing strings in Java please refer to [1].
Exercise 2
Based on the client and server modules developed in exercise 1 develop a simple query protocol that allows a client to operate on the online phone book via the phone book server. The operations should include: insert a new phone number for a specified person, delete a phone number and change a persons phone number. Listing one persons phone numbers may also be an option.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
