ares_timeout (3)
Leading comments
Copyright 1998 by the Massachusetts Institute of Technology. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written pr...
NAME
ares_timeout - return maximum time to waitSYNOPSIS
#include <ares.h> struct timeval *ares_timeout(ares_channel channel, struct timeval *maxtv, struct timeval *tv)
DESCRIPTION
The ares_timeout(3) function determines the maximum time for which the caller should wait before invoking ares_process(3) to process timeouts. The parameter maxtv specifies a existing maximum timeout, or NULL if the caller does not wish to apply a maximum timeout. The parameter tv must point to a writable buffer of type struct timeval It is valid for maxtv and tv to have the same value.If no queries have timeouts pending sooner than the given maximum timeout, ares_timeout(3) returns the value of maxtv; otherwise ares_timeout(3) stores the appropriate timeout value into the buffer pointed to by tv and returns the value of tv.
SEE ALSO
ares_fds(3), ares_process(3), ares_process_fd(3)AUTHOR
Greg Hudson, MIT Information SystemsCopyright 1998 by the Massachusetts Institute of Technology.