|
Packit |
514978 |
.\"
|
|
Packit |
514978 |
.\" Copyright 1998 by the Massachusetts Institute of Technology.
|
|
Packit |
514978 |
.\"
|
|
Packit |
514978 |
.\" Permission to use, copy, modify, and distribute this
|
|
Packit |
514978 |
.\" software and its documentation for any purpose and without
|
|
Packit |
514978 |
.\" fee is hereby granted, provided that the above copyright
|
|
Packit |
514978 |
.\" notice appear in all copies and that both that copyright
|
|
Packit |
514978 |
.\" notice and this permission notice appear in supporting
|
|
Packit |
514978 |
.\" documentation, and that the name of M.I.T. not be used in
|
|
Packit |
514978 |
.\" advertising or publicity pertaining to distribution of the
|
|
Packit |
514978 |
.\" software without specific, written prior permission.
|
|
Packit |
514978 |
.\" M.I.T. makes no representations about the suitability of
|
|
Packit |
514978 |
.\" this software for any purpose. It is provided "as is"
|
|
Packit |
514978 |
.\" without express or implied warranty.
|
|
Packit |
514978 |
.\"
|
|
Packit |
514978 |
.TH ARES_TIMEOUT 3 "25 July 1998"
|
|
Packit |
514978 |
.SH NAME
|
|
Packit |
514978 |
ares_timeout \- return maximum time to wait
|
|
Packit |
514978 |
.SH SYNOPSIS
|
|
Packit |
514978 |
.nf
|
|
Packit |
514978 |
#include <ares.h>
|
|
Packit |
514978 |
|
|
Packit |
514978 |
struct timeval *ares_timeout(ares_channel \fIchannel\fP,
|
|
Packit |
514978 |
struct timeval *\fImaxtv\fP,
|
|
Packit |
514978 |
struct timeval *\fItv\fP)
|
|
Packit |
514978 |
.fi
|
|
Packit |
514978 |
.SH DESCRIPTION
|
|
Packit |
514978 |
The \fBares_timeout(3)\fP function determines the maximum time for which the
|
|
Packit |
514978 |
caller should wait before invoking \fIares_process(3)\fP to process timeouts.
|
|
Packit |
514978 |
The parameter \fImaxtv\fP specifies a existing maximum timeout, or \fBNULL\fP
|
|
Packit |
514978 |
if the caller does not wish to apply a maximum timeout. The parameter
|
|
Packit |
514978 |
\fItv\fP must point to a writable buffer of type \fBstruct timeval\fP It is
|
|
Packit |
514978 |
valid for \fImaxtv\fP and \fItv\fP to have the same value.
|
|
Packit |
514978 |
|
|
Packit |
514978 |
If no queries have timeouts pending sooner than the given maximum timeout,
|
|
Packit |
514978 |
\fBares_timeout(3)\fP returns the value of \fImaxtv\fP; otherwise
|
|
Packit |
514978 |
\fBares_timeout(3)\fP stores the appropriate timeout value into the buffer
|
|
Packit |
514978 |
pointed to by \fItv\fP and returns the value of \fItv\fP.
|
|
Packit |
514978 |
.SH SEE ALSO
|
|
Packit |
514978 |
.BR ares_fds (3),
|
|
Packit |
514978 |
.BR ares_process (3),
|
|
Packit |
514978 |
.BR ares_process_fd (3)
|
|
Packit |
514978 |
.SH AUTHOR
|
|
Packit |
514978 |
Greg Hudson, MIT Information Systems
|
|
Packit |
514978 |
.br
|
|
Packit |
514978 |
Copyright 1998 by the Massachusetts Institute of Technology.
|