Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
OSS Library Calls (i - m) lwres_getaddrinfo(3)
s = socket(ainfo->ai_family, ainfo->ai_socktype,
ainfo->ai_protocol);
if (connect(s, ainfo->ai_addr, ainfo->ai_addrlen) == -1) {
perror(argv[0]);
fprintf(stderr, "unable to connect0);
FILE_CLOSE(S);
continue;
}
else
break;
}
RELATED INFORMATION
Functions: getaddrinfo(3), lwres_gai_strerror(3), lwres_gethostbyname(3)
,
lwres_getipnodebyname(3)
.
527187-007 Hewlett-Packard Company 4−99