you are required to follow the Unix domain server and client example done in the classroom. After this point, you need to set up the server in a way that will process the data sent by the client and send back the processed data. You must read at least two sets of data, and send back at least a piece of information. For instance, the client might send two numbers and the server will send the summation back. This is only an example, please do something a little more complicated. I do not want to see the same operation over and over again in the assignments. You can use scanf and printf with dup2 to obtain numbers. Alternatively, you could read the text and use sscanf and sprintf. You could also perform text-based operations. It is up to you. You must perform all error checks.
2 c file
you are required to follow the Unix domain server and client example done in the classroom. After this point, you need to set up the server in a way that will process the data sent by the client and send back the processed data. You must read at least two sets of data, and send back at least a piece of information. For instance, the client might send two numbers and the server will send the summation back. This is only an example, please do something a little more complicated. I do not want to see the same operation over and over again in the assignments. You can use scanf and printf with dup2 to obtain numbers. Alternatively, you could read the text and use sscanf and sprintf. You could also perform text-based operations. It is up to you.
You must perform all error checks.
Step by step
Solved in 2 steps with 2 images