Skip to content

Commit

Permalink
Debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Dec 3, 2023
1 parent 4644f94 commit c274cf1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,22 +603,23 @@ int lo_address_resolve(lo_address a)
hints.ai_socktype =
a->protocol == LO_UDP ? SOCK_DGRAM : SOCK_STREAM;

if (getaddrinfo(host, lo_address_get_port(a), &hints, &ai)) {
/*if (getaddrinfo(host, lo_address_get_port(a), &hints, &ai)) {
usleep(100000);
if (getaddrinfo(host, lo_address_get_port(a), &hints, &ai)) {
usleep(200000);
if (getaddrinfo(host, lo_address_get_port(a), &hints, &ai)) {
usleep(400000);
usleep(400000);*/
if ((ret = getaddrinfo(host, lo_address_get_port(a), &hints, &ai))) {
puts("MAC ERROR!");
a->errnum = ret;
a->errstr = gai_strerror(ret);
a->ai = NULL;
a->ai_first = NULL;
return -1;
}
}
/* }
}
}
}*/
a->ai = ai;
a->ai_first = ai;
}
Expand Down

0 comments on commit c274cf1

Please sign in to comment.