removed server received messages
This commit is contained in:
parent
9630da569f
commit
41291fd345
@ -294,6 +294,7 @@ void *why2_communicate_thread(void *arg)
|
|||||||
};
|
};
|
||||||
|
|
||||||
why2_list_push(&connection_list, &node, sizeof(node)); //ADD TO LIST
|
why2_list_push(&connection_list, &node, sizeof(node)); //ADD TO LIST
|
||||||
|
printf("User connected.\t\t%d\n", connection);
|
||||||
|
|
||||||
void *buffer;
|
void *buffer;
|
||||||
char *received = NULL;
|
char *received = NULL;
|
||||||
@ -360,8 +361,6 @@ void *why2_communicate_thread(void *arg)
|
|||||||
goto deallocation; //IGNORE MESSAGES BEGINNING WITH '!'
|
goto deallocation; //IGNORE MESSAGES BEGINNING WITH '!'
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Received:\n%s\n\n", received);
|
|
||||||
|
|
||||||
pthread_create(&thread_buffer, NULL, send_to_all, raw);
|
pthread_create(&thread_buffer, NULL, send_to_all, raw);
|
||||||
pthread_join(thread_buffer, NULL);
|
pthread_join(thread_buffer, NULL);
|
||||||
|
|
||||||
@ -376,7 +375,7 @@ void *why2_communicate_thread(void *arg)
|
|||||||
raw_ptr = NULL;
|
raw_ptr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("User exited.\t%d\n", connection);
|
printf("User disconnected.\t%d\n", connection);
|
||||||
|
|
||||||
//DEALLOCATION
|
//DEALLOCATION
|
||||||
why2_deallocate(received);
|
why2_deallocate(received);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user