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:
Create a TCP listening socket on port
Set up a loop to accept the choices and data from the client and respond accordingly.
On the client side:
Create a socket program that will connect to the server
a Produce an error if the connection isnt successful
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
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
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
Record and display to the user the total bytes sent to the server executing tasks a and b
only
Output requirements:
Capture an image of your working client and server a digital image will do
Attach source code, output file, and related images to a single file ie zip all files
into one
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
