Question: Create C programs that accomplish the following: You must document your program and ensure the sockets are sent and received correctly.o accomplish this program, you

Create C programs that accomplish the following:
You must document your program and ensure the sockets are sent and received correctly.o accomplish this program, you will need one Linux machine.
On the server side:
1) Create a TCP listening socket on port 8081.
2) Set up a loop to accept the choices and data from the client and respond accordingly.
On the client side:
1) Create a socket program that will connect to the server
a. Produce an error if the connection isnt successful
2) Produce a choice menu for the user for the following:
a. ask the user to send files (listed below) to the server
i. Send the attached three files
1. Once the program receives files from client, it will respond with
the following:
a. The total bytes sent
b. The total time it took (in milliseconds) to receive the file
b. Allow a calculator menu whereby the user can use add, subtraction, multiply, or
divide
i. Send two integers
ii. Accept the results from the program and display to the user
c. Exit the program
Note: you must run a., b., and c..
3) Record and display to the user the total time executing the tasks for a. and b. only.
a. Only record the time the system spent processing (send or receiving) the
information
4) Record and display to the user the total bytes sent to the server executing tasks a. and b.
only
Output requirements:
1) Capture an image of your working client and server (a digital image will do)
2) Attach source code, output file, and related images to a single file (i.e., zip all files
into one

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 Programming Questions!