Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSC 3351 Data Communications Project Simple password verification In this project, each team is required to use socket programming in pair of client and serv
CSC 3351 Data Communications Project Simple password verification In this project, each team is required to use socket programming in pair of client and serv send a pair of usename and password to your server and your server w Fall 2018 Due 11/28/18 Java to implement a er that can achieve simple password verification. Your client will the pair o of usernames and passwords that will be accepted by your server are as follows. f username and password is legitimate or not. Assume the only legitimate pairs Password 43tYqL everly caroline duncan esther frank 9fB6RK87 Vuj75Po9 2SWn9C7v c6Nf3me r7h9CX6q 8Bnc5Gt More specifically, your client and server need to achieve the following requirements: 1. Your program for client needs to take two arguments that specify the name of server and the port that it is trying to connect to. Your program for server needs to take an argument that specifies the port that it is listening to. Your server will start first and keep listening to the specified port. Your client will connet to the port that your server is listening to, and a socket between your 2. client and server is constructed. 3. Your client will first prompt a welcome message that asks the user to enter a username using the keyboard. This username will then be sent to the server. Ther, your server, after receiving the username from your clien acknowledgment message to the client. 4. Your client; after receiving the acknowledgment message from your server, will prompt a message that asks the user to enter the corresponding password. This password will then be sent to the server. Then, your server, after receiving the password from your client, will verify the received pair of username and password against the list of legitimate pairs. If the result is positive, the server will send a success message to the client. If the result is negative, the server will send a failure message to the client Your client, after receiving the result message, will print out the result and close the socket. Your server will close the socket following the client, and keep listening for the next client request. Be prepared to present your code and execute programs on the due date. 5. 6
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started