Question: 1. Description For this assignment, you will wrile a multithreaded file server program. The server makes a collection of files available for transmission to clients.

 1. Description For this assignment, you will wrile a multithreaded file
server program. The server makes a collection of files available for transmission
to clients. When a clicnt connects to the server, the server fint
reids a one-line command foom the chicht. The ceemmard can be: -

1. Description For this assignment, you will wrile a multithreaded file server program. The server makes a collection of files available for transmission to clients. When a clicnt connects to the server, the server fint reids a one-line command foom the chicht. The ceemmard can be: - The string "L.15T", In this case, the server responds by sending a list of numes of all the files that are available on the server. - Or the commund can be of the form 'GET cfilenames", where cfilenumes is a file aume The server checks whether the requesied file exisk. If so, it sends "OK" as a mesage so the client. Then it sends the contents of the file and closes the coenection. Obkerwise, it sends a line begineing with the word "ERROR" to the client. The server can alwo respond with the message "unknown countand" if the command it reads is sot one of the two possible kgal commands.). A skcicton of the server program is atachod with the assignment. For all the three cases, the server must return a thread ID to the client. Your program shoald use a thread class to handle each request that the server receives. Ir shoeld not stop after handling ese request, it shoeld remain epen and continue to aceept new requedts. Tesi your fille server for the following cases: - Sangle clicet 2 to 4 cliens - 2 clients downloading the same file. 11. Deliverables 1. Client program 2. Server program 3. Report 4. Readrse The repoet must contain The fowcharts of the programs, screenshots of running diests and server with their description. And the Readme file mast conain the esecution seenario of the project. [i1. Grading Creation of inpet and output areams: 10% Server processing of client commands flist-get-errork 15\%. Concument clients connections (4 clients): 25\%: Clieat peocessing of user inputs: 10% Client downlood creation of a file: 10%. Design (flewharts) 5\% Coding style (classes - variables - methods - comments): 1% Correct steps in Readme: 10% Report 5% 1. Description For this assignment, you will wrile a multithreaded file server program. The server makes a collection of files available for transmission to clients. When a clicnt connects to the server, the server fint reids a one-line command foom the chicht. The ceemmard can be: - The string "L.15T", In this case, the server responds by sending a list of numes of all the files that are available on the server. - Or the commund can be of the form 'GET cfilenames", where cfilenumes is a file aume The server checks whether the requesied file exisk. If so, it sends "OK" as a mesage so the client. Then it sends the contents of the file and closes the coenection. Obkerwise, it sends a line begineing with the word "ERROR" to the client. The server can alwo respond with the message "unknown countand" if the command it reads is sot one of the two possible kgal commands.). A skcicton of the server program is atachod with the assignment. For all the three cases, the server must return a thread ID to the client. Your program shoald use a thread class to handle each request that the server receives. Ir shoeld not stop after handling ese request, it shoeld remain epen and continue to aceept new requedts. Tesi your fille server for the following cases: - Sangle clicet 2 to 4 cliens - 2 clients downloading the same file. 11. Deliverables 1. Client program 2. Server program 3. Report 4. Readrse The repoet must contain The fowcharts of the programs, screenshots of running diests and server with their description. And the Readme file mast conain the esecution seenario of the project. [i1. Grading Creation of inpet and output areams: 10% Server processing of client commands flist-get-errork 15\%. Concument clients connections (4 clients): 25\%: Clieat peocessing of user inputs: 10% Client downlood creation of a file: 10%. Design (flewharts) 5\% Coding style (classes - variables - methods - comments): 1% Correct steps in Readme: 10% Report 5%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!