Computer Science 2023 experiment with connectionless datagram socket
2023 This programming assignment guides you through the experiment with connectionless datagram socket via code sample Example 2 in Figure | Assignment Collections
This programming assignment guides you through the experiment with connectionless datagram socket via code sample Example 2 in Figure 4.10, 4.11, and 4.12 in Liu’s textbook.
Perform the following tasks:
Task One:
1. Compile the .java files.
2. Then start Example2ReceiverSender, followed by Example2SenderReceiver.
An example of the commands for running the programs is:
java Example2ReceiverSender localhost 20000 10000 msgl
java Example2SenderReceiver localhost 10000 20000 msg2
3. Describe the outcome. Why is the order of the execution of the two processes important?
Task Two:
1. Modify the code so that the senderReceiver process sends then receives repeatedly suspending itself for 3 seconds between each iteration.
2. Compile the .java files.
3. Then start Example2ReceiverSender, followed by Example2SenderReceiver.
An example of the commands for running the programs is:
java Example2ReceiverSender localhost 20000 10000 msgl
java Example2SenderReceiver localhost 10000 20000 msg2
4. Describe the outcome.repeat the run.
5. Do the same with the receiverSender.
6. Compile and run the programs for a few minutes before terminating the programs (by entering the keystroke sequence “control-c”).
7. Describe and explain the outcome.
Note: To help you track the run outcomes, it is recommended that you execute each application in a separate window on your screen, preferably sizing and positioning the windows so that you can see the displays side by side.
In addition to the source codes of your programs, in a text file, please provide a user documentation that outlines:
The logical structure and flow of the programs.
A detailed instruction of how the program can be compiled and executed.
Screen shots of the execution sessions.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.