Echo server
An echo server echoes back whatever it receives from a client. Forexample, if a client sends the server thestring "Hello there!"the serverwill respond with the exact data it received from the client-that is,Hello there!
Write an echo server using socket programming in UNIX using C programming. (both, client side and server side).
The server willloop, performing the following steps:
• Read data from the socket into a buffer.
• Write the contents of the buffer back to the client.
The client will
• Read data from the user into a buffer.
• Send the contents of the buffer to the server.
- This programming assignment is to be completed individually.Your code must compile and run.
- Remember to include the necessary documentation in the source code and in the output.
- Hand in a copy of the source code and the copy of the output.Review the grading algorithm before you submit your work!
- Remember that all Homework/Assignments are to be completedindividually. All violations of the TAMUK honor code will be reported. Duplicate programs will not receive credit. (Further consequences may apply)