This is what I use to send to the socket.
this is how i get the info to send and use write_to_socket.
void write_to_socket(char * buf)
send(sockfd, buf, strlen(buf),0);
I get the problem when i'm sending the password. I need to send it twice to verify it. Then we enter the smiley and division sign.
printf("Name for character?\n\r");
fgets(name, sizeof(name), stdin);
if (name == '\0')
printf("Name was blank.\n\r");
printf("Give us a password.\n\r");