|
|
@ -18,14 +18,16 @@ |
|
|
|
ares_getaddrinfo \- Initiate a host query by name and service |
|
|
|
ares_getaddrinfo \- Initiate a host query by name and service |
|
|
|
.SH SYNOPSIS |
|
|
|
.SH SYNOPSIS |
|
|
|
.nf |
|
|
|
.nf |
|
|
|
.B #include <ares.h> |
|
|
|
#include <ares.h> |
|
|
|
.PP |
|
|
|
|
|
|
|
.B typedef void (*ares_addrinfo_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|
|
|
typedef void (*ares_addrinfo_callback)(void *\fIarg\fP, int \fIstatus\fP, |
|
|
|
.B int \fItimeouts\fP, struct ares_addrinfo *\fIresult\fP) |
|
|
|
int \fItimeouts\fP, |
|
|
|
.PP |
|
|
|
struct ares_addrinfo *\fIresult\fP) |
|
|
|
.B void ares_getaddrinfo(ares_channel \fIchannel\fP, const char *\fIname\fP, |
|
|
|
|
|
|
|
.B const char* \fIservice\fP, const struct ares_addrinfo_hints *\fIhints\fP, |
|
|
|
void ares_getaddrinfo(ares_channel \fIchannel\fP, const char *\fIname\fP, |
|
|
|
.B ares_addrinfo_callback \fIcallback\fP, void *\fIarg\fP) |
|
|
|
const char* \fIservice\fP, |
|
|
|
|
|
|
|
const struct ares_addrinfo_hints *\fIhints\fP, |
|
|
|
|
|
|
|
ares_addrinfo_callback \fIcallback\fP, void *\fIarg\fP) |
|
|
|
.fi |
|
|
|
.fi |
|
|
|
.SH DESCRIPTION |
|
|
|
.SH DESCRIPTION |
|
|
|
The |
|
|
|
The |
|
|
|