The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Please update code to the specifications below:
Library Multi-threaded Application:
Â
Task Description: Â
Modify the server application of your project so that it can handle multiple concurrent (i.e., threaded) requests from client applications. Run the client application and test its connection and use of the above application server.
The Authentication Server is properly threaded to accept client requests, authenticate credentials, and return a result (note: each socket should be handled in a separate thread.
For all the reason you have learned, use Runnable.
Â
The ConnectionMgr opens a listener, accepts a request, passes the socket on to the SocketMgr for processing and remains listening for the next request to handle in the same manner.
The SocketMgr socket is the thread and it handles the input and output streams and the authentication verification (login == hardcoded username & password).
Â
Have the UI display a successful or unsuccessful authentication message based on the returned boolean.
Â
Please include your name in all applications, i.e. SmithWk8PrjV1 and SmithAuthenticationServerV1 (optionally SmithCommonV1),
Â
Notice that no JUnit is tasked for this week.