Modify the server code that can handle multiple connections at the same time to handle specific COMMANDS sent from the client. A particular command, in this task, is “Date”.
Type “Date” in the Client, which will be sent to the Server, the server should respond with the Current Day, Date and Time (in its Current Time-Zone, e.g., KL).
This should be presented as a single line, that is terminated with a carriage return (ASCII code 13) and line feed (ASCII code 10).
Example of output: Wed Nov 30 17:00:54 2023 GMT + 8
Another particular command, in this task, is “Time” and a code of a time-zone.
Typing “Time” in the Client, which will be sent to the Server, the server should respond with only the Current Time (in the Current Time-Zone, which is in “Malaysia” time).
Typing, for example, “Time GMT” in the Client, which will be sent to the Server, the server should respond with the Current Time (in the GMT Time-Zone). List of acceptable time-zones and the associated offset from GMT (in hours), is available in Table 1, below. Please assume that the server is based in Malaysia, hence, you would need to modify the offsets in accordance with the current time-zone, so that the returned times are correct.
If any other Time-Zone codes provided, the server should respond with “ERROR” string.
Write it in C.