Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java File Transfer Protocol: Build a simple File Transfer Service that consists

ID: 3685753 • Letter: J

Question

Java File Transfer Protocol:

Build a simple File Transfer Service that consists of a client and server.

The server exports a set of files from the computer on which it runs to be downloaded on the client computer.

That is: a client requests a file from the server and the server responds to the client by sending the file.

Client will request one file at a time. Server will send the contents of the file followed by end-offile and then exits.

Client must save the file on the local computer with the same file name.

Server records all file download activities in a log file. You should build your MFTP on UDP ports using TCP.

The message from the client and the response from the server are transmitted as the content of UDP datagrams.

Each message is identified by a message code as follows:

message code meaning:

1 Request a file to be read from the server

2 The message contains data being transferred

3 The message acknowledges a data message

4 Reports an error [error message: File not found]

Format of the messages being transmitted between the client and the server are:

Read message:

1 File Name Zero Data message:

2 sequence number Data Bytes ........... Acknowledgement message:

3 sequence number Error message:

4 "File Not Found" zero

Explanation / Answer

UDPServer.java

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote