UDP server-client application in java

See screenshots at the bottom of the page

Order Description

In this assignment , you are required to write s UDP server-client application that performs simple file transfer as follows:

  • The client should perform the following:
  1. Read the name of the file to be read from the console. The user should enter the file name. Assume that all files are .txt files.
  2. Send the name of the file to the server.
  3. Receive the contents of the file and display it to the console.
  4. Write the received content to a file with the same name
  • The server should perform the following:
  1. Listen continuously for client's requests.
  2. Read the name of the file written in each packet received from a client.
  3. Read the contents of the requested file and send them to the client.

Note: You may assume that all files are located in the same parent directory of your project at the server side and write to the files in the same parent directory of your project at client side.

 

Screenshots