|
|
@ -17,7 +17,7 @@ |
|
|
|
.\" |
|
|
|
.\" |
|
|
|
.TH ARES_GETSOCK 3 "11 March 2010" |
|
|
|
.TH ARES_GETSOCK 3 "11 March 2010" |
|
|
|
.SH NAME |
|
|
|
.SH NAME |
|
|
|
ares_getsock \- get socket descriptors to wait on |
|
|
|
ares_getsock \- get socket descriptors to wait on (deprecated) |
|
|
|
.SH SYNOPSIS |
|
|
|
.SH SYNOPSIS |
|
|
|
.nf |
|
|
|
.nf |
|
|
|
#include <ares.h> |
|
|
|
#include <ares.h> |
|
|
@ -37,8 +37,8 @@ Socket descriptors will be set in the socket descriptor array pointed to by |
|
|
|
\fIsocks\fP. |
|
|
|
\fIsocks\fP. |
|
|
|
\fInumsocks\fP is the size of the given array in number of ints. |
|
|
|
\fInumsocks\fP is the size of the given array in number of ints. |
|
|
|
|
|
|
|
|
|
|
|
This function can only return information about up to 16 sockets. If more are |
|
|
|
This function can only return information up to 16 sockets. If more are |
|
|
|
in use (however unlikely that is), they are simply not reported back. |
|
|
|
in use, they are simply not reported back. |
|
|
|
.SH RETURN VALUES |
|
|
|
.SH RETURN VALUES |
|
|
|
\fBares_getsock\fP returns a bitmask for what actions to wait for on the |
|
|
|
\fBares_getsock\fP returns a bitmask for what actions to wait for on the |
|
|
|
different sockets. The ares.h header file provides these convenience macros to |
|
|
|
different sockets. The ares.h header file provides these convenience macros to |
|
|
@ -52,7 +52,9 @@ extract the information appropriately: |
|
|
|
ARES_GETSOCK_MAXNUM))) |
|
|
|
ARES_GETSOCK_MAXNUM))) |
|
|
|
.fi |
|
|
|
.fi |
|
|
|
.SH NOTES |
|
|
|
.SH NOTES |
|
|
|
This function was added in c-ares 1.3.1 |
|
|
|
This function was added in c-ares 1.3.1 and deprecated in c-ares 1.20.0 due to |
|
|
|
|
|
|
|
the implementation of \fBARES_OPT_MAX_UDP_QUERIES\fP which makes it likely to |
|
|
|
|
|
|
|
exceed 16 open file descriptors. |
|
|
|
.SH SEE ALSO |
|
|
|
.SH SEE ALSO |
|
|
|
.BR ares_timeout (3), |
|
|
|
.BR ares_timeout (3), |
|
|
|
.BR ares_fds (3), |
|
|
|
.BR ares_fds (3), |
|
|
|