version 1.26, 2000/01/29 16:07:08 |
version 1.27, 2000/02/05 18:17:56 |
|
|
for (res = res0; res; res = res->ai_next) { |
for (res = res0; res; res = res->ai_next) { |
if (1 /* retry */) { |
if (1 /* retry */) { |
char hbuf[MAXHOSTNAMELEN]; |
char hbuf[MAXHOSTNAMELEN]; |
|
#ifdef NI_WITHSCOPEID |
|
const int niflags = NI_NUMERICHOST | NI_WITHSCOPEID; |
|
#else |
|
const int niflags = NI_NUMERICHOST; |
|
#endif |
|
|
getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), |
getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), |
NULL, 0, NI_NUMERICHOST); |
NULL, 0, niflags); |
printf("Trying %s...\r\n", hbuf); |
printf("Trying %s...\r\n", hbuf); |
} |
} |
net = socket(res->ai_family, res->ai_socktype, res->ai_protocol); |
net = socket(res->ai_family, res->ai_socktype, res->ai_protocol); |