Question: IN JAVA PLEASE WRITE A PROGRAM THAT DOES THE FOLLOWING Write a sender program and a receiver program, where the sender accepts a file as

IN JAVA PLEASE WRITE A PROGRAM THAT DOES THE FOLLOWING

Write a sender program and a receiver program, where the sender accepts a file as a command line parameter (any binary file on your hard disk), breaks it into smaller chunks (assume at least 12 chunks for your file), and sends it to the receiver using UDP.

The receiver will concatenate the pieces it receives and will store it to a file on its end. Note that you would have at least 12 datagrams sent by the sender to the receiver.

The sender and receiver will write out a detailed log of what they are doing to the console.

for each datagram sent, the sender will write the [packet#]-[start byte offset]-[end byte offset].

for each datagram received, the receiver will write the [packet#]-[start byte offset]-[end byte offset]

Note that you must:

use the UDP protocol for this project.

transmit a binary file (image or sound file)

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!