mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Fix bug
This commit is contained in:
parent
a63fe45662
commit
bfa99147cd
6 changed files with 72 additions and 24 deletions
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue