Pro tip..
If the socket failed.. You probably want to exit the program.Code:printf("Socket creation failed\n");
Code:fputs("Socket creation failed\n", stderr); exit(1);
Pro tip..
If the socket failed.. You probably want to exit the program.Code:printf("Socket creation failed\n");
Code:fputs("Socket creation failed\n", stderr); exit(1);