1. Modify the client and server so that they support multiple file transfers. Th
ID: 3546992 • Letter: 1
Question
1. Modify the client and server so that they support multiple file transfers. The server must run until terminated by the user via eclipse.
2. The server should be able to handle a new client request as soon as it has finished with the previous one.
3. The client must ask the user if he/she wishes to transfer another file.
4. The server must inform the client if the requested file does not exist in the FileTransferSource folder and the client must ask the user to re-enter a file name.
5. Display and log all debug statements of the client and server on the consoles and in log files. The client log file should be in the FileTransferDestination folder and the server log file should be in the FileTransferSource folder.
The PowerPoint slides, the FileTransferClient and FileTransferServer programs and the client and server log files are in the zip file.
" The SimpleDateFormat and Date classes in Java can be used for the date and time of each entry in the log files.
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.Locale;
SimpleDateFormat formatter = new SimpleDateFormat("M/d/yyyy|HH:mm:ss.S", Locale.getDefault());
String dateString = formatter.format(new Date(System.currentTimeMillis()));"
P.S: PLease post here the email if you want me to send all the Zip file with sample Java programming codes.
Thnanks!
Explanation / Answer
Hi. I don't see the code with steps 1 to 10 in what you sent me. did you include that code?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.