custom writing services

Need help: Write an email to our support staff support@myprivatementor.com or


whatsapp us

order order
Average score 4.97 out of 5 based on 836 opinions

Java Socket Programming

File server application

 

In this assignment, you develop a file server application based on socket programming. The code has two parts: server side and client side. The server, which is a file server, has a number of files available on the hard disk (local folder of the code for instance). The client can either request to receive (download) one of those files or upload a new file to the server.

Client Side:

 

The client’s graphical user interface (GUI), allows the user to either upload a file to the file server or download a file from the file server. The user decides about the upload or download functionality by providing the file name or address and pressing the download or upload button.

 

Upload: In the upload mode, the user first chooses the file to be uploaded from the files on its local hard drive. You can implement this in two ways:

1 Your GUI has a “choose file” button. When you click on it, a file browser allows the user to browse through the local hard drive and choose a file.

2 Alternatively, you can have a text field where the user inputs the full address of the file on the local hard drive such as:

“c:myfilestestfile.txt”

 

After choosing the file or entering the file’s address, the user clicks on the “upload” button and the file will be sent to the server and saved on the serves local drive.

 

Download: The user will provide the file name in a text field and click on the download button. The file name can be something like “readme.txt”.

 

A request with the file name will be sent to the server. If the file exists on the server, it will be transferred to the client and saved on the local hard drive of the client. If the file does not exist on the server, an error message will be instead sent to the client. The client GUI should somehow (either through a pop up window or in a label on the same GUI) show the user an appropriate message saying that “The file requested does not exist”.

 

Server Side:

The server code does NOT need to have a GUI. It only listens to a specific port and waits for the client’s message. If the client sends an upload request, it will receive the file and save it along with the other files on the file server (a local address). If it receives a download request, it will send the requested file to the client or an appropriate message to inform the client that the file does not exist.

 

Details and options:

The GUI for the client needs to have:

• A “choose file” button or a “file name” text field in which the client provides the address for the upload function.

• An “upload” button that initiates the file transfer of the chosen file to the server.

• A “file name” text field to provide the file name to be downloaded from the server

• A “download” button that will send the download request to the server


• A label to show the user on the client side, the occurred errors such as “file not found” if the user enters a file name to be uploaded that does not exist, the error message coming from the server that the file requested doesn’t exist, or the server not ready message (if you decide to handle that)

NEED TO MAKE AN ORDER? HERE IS HOW IT WORKS

order-process

Need an answer from similar question?Click here and get a solution now

order You have just landed to the most confidential, trustful essay writing service to order the paper from. We have a dedicated team of professional writers who will assist you with any kind of assignment that you have. Your work is handled confidentially with a specific writer who ensures you are satisfied. Be assured of quality, unique and price friendly task delivered in good time when you place an order at our website. banner We have a team of dedicated writers with degrees from all spheres of study. We readily accept all types of essays and we assure you of content that will meet your expectations. Our staff can be reached  via live chat, email or by phone at any given time with prompt response.  

Prices starting at:

High school
Undergrad.(yrs 1-2)
Undergrad.(yrs 3-4)
Master’s
Doctoral
$10 / page
$10/ page
$12/ page
$15 / page
$17/ page

Note: The prices in the table above are applicable to orders completed within 14 days. Kindly see the full price table for more prices..

We urge you to provide as much information as possible to avoid many revisions. Set your deadline, choose your level, give payment information and relax while you track your work. We will deliver your paper on time. Are you in a quagmire and you are unable to complete your assignments? Do you doubt yourself on the quality of the essay you have written? Myprivatementor.com  is here to assist you. We will offer you unmatched quality that is plagiarism free. Place an order at myprivatementor.com  for guaranteed  high grades. order download

we offer gifts to our paper help customersPayment Methods

you can request our services and pay via paypal

we offer gifts to our paper help customersOur Guarantees

  1. Zero plagiarism.
  2. 100% confidentiality.
  3. FREE Reference page
  4. High Quality papers
  5. 24/7 Customer support

Our Testimonials Testimonials

I ordered a 7 page college essay and was delivered on time. Thank you guys I will definitely order again!

9.5
, FL

Our statisticsOur Statistics

  • Orders Completed todate 72387

  • Number of writers 500

  • Satisfied customers 99.7%

  • Returning customers 92.3%

  • Orders placed today 87