Why can't you post code properly? It's not difficult. Just make sure you post it as plain text.
And the whole "errnoOut" thing seems pointless to me. What's wrong with:
Code:
int sendIPv6J(int sockfd, char buffer[]) {
return send(sockfd, buffer, strlen(buffer) + 1, 0);
}
// ...
strcpy(Cbuffer, "Client says hello server!!!");
n = sendIPv6J(Csockfd, Cbuffer);
if (n < 0) {
perror("sendIPv6J");
exit(EXIT_FAILURE); // or whatever
} else {
printf("Client: SENT MSG : %s : of size %d\n",
Cbuffer, n);
}
(Notice how the code looks better when posted properly?)