This commit is contained in:
PolynomialDivision 2017-07-25 20:52:39 +02:00
parent a63fe45662
commit bfa99147cd
6 changed files with 72 additions and 24 deletions

View file

@ -121,7 +121,7 @@ void *receive_msg(void *args) {
int send_string(char *msg) {
pthread_mutex_lock(&send_mutex);
int msglen = strlen(msg);
/*int msglen = strlen(msg);
//printf("Sending string! %s\n", msg);
if (sendto(sock,
msg,
@ -131,7 +131,7 @@ int send_string(char *msg) {
sizeof(addr)) < 0) {
perror("sendto()");
exit(EXIT_FAILURE);
}
}*/
pthread_mutex_unlock(&send_mutex);