source: trunk/athena/lib/ares/ares_timeout.3 @ 11855

Revision 11855, 1.9 KB checked in by ghudson, 26 years ago (diff)
Documentation for libares, an asynchronous resolver library
Line 
1.\" $Id: ares_timeout.3,v 1.1 1998-08-13 18:07:36 ghudson Exp $
2.\"
3.\" Copyright 1998 by the Massachusetts Institute of Technology.
4.\"
5.\" Permission to use, copy, modify, and distribute this
6.\" software and its documentation for any purpose and without
7.\" fee is hereby granted, provided that the above copyright
8.\" notice appear in all copies and that both that copyright
9.\" notice and this permission notice appear in supporting
10.\" documentation, and that the name of M.I.T. not be used in
11.\" advertising or publicity pertaining to distribution of the
12.\" software without specific, written prior permission.
13.\" M.I.T. makes no representations about the suitability of
14.\" this software for any purpose.  It is provided "as is"
15.\" without express or implied warranty.
16.\"
17.TH ARES_TIMEOUT 3 "25 July 1998"
18.SH NAME
19ares_fds \- Get file descriptors to select on for name service
20.SH SYNOPSIS
21.nf
22.B #include <ares.h>
23.PP
24.B struct timeval *ares_timeout(ares_channel \fIchannel\fP,
25.B      struct timeval *\fImaxtv\fP, struct timeval *\fItvbuf\fP)
26.fi
27.SH DESCRIPTION
28The
29.B ares_timeout
30function determines the maximum time for which the caller should wait
31before invoking
32.BR ares_process (3)
33to process timeouts.  The parameter
34.I maxtv
35specifies a existing maximum timeout, or
36.B NULL
37if the caller does not wish to apply a maximum timeout.  The parameter
38.I tvbuf
39must point to a writable buffer of type
40.BR "struct timeval" .
41It is valid for
42.I maxtv
43and
44.I tvbuf
45to have the same value.
46.PP
47If no queries have timeouts pending sooner than the given maximum
48timeout,
49.B ares_timeout
50returns the value of
51.IR maxtv;
52otherwise
53.B ares_timeout
54stores the appropriate timeout value into the buffer pointed to by
55.I tvbuf
56and returns the value of
57.IR tvbuf .
58.SH SEE ALSO
59.BR ares_fds (3),
60.BR ares_process (3)
61.SH AUTHOR
62Greg Hudson, MIT Information Systems
63.br
64Copyright 1998 by the Massachusetts Institute of Technology.
Note: See TracBrowser for help on using the repository browser.