Project Requirements: 1) define a protocol for the following network echo application and, 2) implement both the client and server in the C language on Linux or Cygwin.
1) The client prompts the user to enter a string.2) If the string entered by the user is quit or exit (case insensitive), the client program exits. 3)The client prompts the users to enter two options.4)The client establishes a TCP connection with the server.5)The client sends a string of characters and two options to the server. Note that the client does not verify the options. 6) The server verifies the options after receiving them from the client. 7) The server closes the TCP connection. 8) When the client receives a message from the server, if the message includes an error code, the client prints out the corresponding error message; otherwise it prints the strings in the message on the screen. 9)The client closes the TCP connection.