Part A-4

// C client code to send string to reverse //p4client.c #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <unistd.h> #define PORT 8090 // Driver code int main() { struct sockaddr_in address; int sock = 0, valread; struct sockaddr_in serv_addr; char str[100]; printf("\nInput the string:"); scanf("%[^\n]s", str); char buffer[1024] = { 0 }; // Creating socket file descriptor if ((sock = socket(AF_INET, ...