HANDLING CONCURRENT CLIENTS
Using the TCP echo server and client discussed in the previous assignment, write client and server programs to implement a simple client-server authentication system. You will be able to implement and test both the client and server programs on a single machine by running them on different ports with the same Internet Protocol (IP) address.
Your program must take care of the following:
- At the client end, provide a menu such as: If a user selects Register, get the login ID and password from the user and contact the server with the information required for registration. The server maintains a file with a list of client login IDs and associated passwords. The server updates this file with the registration information provided by the new user.
- Authenticate yourself
- If a user selects Authenticate yourself, get the login ID and password from the user. Send this information to the server for authentication. The server authenticates the user by performing a password lookup and sending a “Client Authenticated” or “Client Not Authenticated” message. This is required to implement the JOIN feature in your distributed library implementation.
Continue with the Microsoft Word document from Project Part 3—Handling Concurrent Clients and add your client and server programs to it. Include client and server window screenshots for successful and unsuccessful authentication attempts.
** Added to the Microsoft Word document the client and server programs, including the client-server authentication program such that at the client-end, a menu displayed the two choices: Register and Authenticate yourself
** Addressed the user registration requirements in the programs; it included the requirements to update the file with a list of client login IDs and passwords with the registration information provided by the new user.
** Addressed the user authentication requirements in the program, and appropriately sent a “Client Authenticated” or “Client Not Authenticated” message
** Cited all sources using APA format. Include an abstract, use correct spelling, grammar, and professional vocabulary.